最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

What's Javascript code that Cloudflare is adding to my page? - Stack Overflow

programmeradmin0浏览0评论

I use CloudFlare, i check other website who use CF, but they don't have i this javascript code :

<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:{profile:false},oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok9v=/"},atok:"**",petok:"**-**-**",zone:"**",rocket:"0",apps:{}}];var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.async=!0;a.src="//ajax.cloudflare/cdn-cgi/nexp/dok9v=b064e16429/cloudflare.min.js";b.parentNode.insertBefore(a,b);}}catch(e){};
//]]>
</script>

Anyone can say me, how to disable this ?

thanks

I use CloudFlare, i check other website who use CF, but they don't have i this javascript code :

<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:{profile:false},oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok9v=/"},atok:"**",petok:"**-**-**",zone:"**.",rocket:"0",apps:{}}];var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.async=!0;a.src="//ajax.cloudflare./cdn-cgi/nexp/dok9v=b064e16429/cloudflare.min.js";b.parentNode.insertBefore(a,b);}}catch(e){};
//]]>
</script>

Anyone can say me, how to disable this ?

thanks

Share Improve this question edited Aug 12, 2022 at 15:38 Machou asked Apr 1, 2014 at 1:12 MachouMachou 1712 silver badges12 bronze badges 8
  • If you dont want it you get rid of the script. Just erase it.... – Idris Commented Apr 1, 2014 at 1:16
  • he's not in my file ^^ – Machou Commented Apr 1, 2014 at 1:18
  • 1 It's CloudFlare who inject this code, but i want to disable it ^^ – Machou Commented Apr 1, 2014 at 1:21
  • Any why are you trying to disable it? It's there for a reason – Idris Commented Apr 1, 2014 at 1:22
  • 1 i just want to know why i have this code ^^ – Machou Commented Apr 1, 2014 at 2:01
 |  Show 3 more ments

2 Answers 2

Reset to default 5

By default CloudFlare has Smart Errors turned on domains. This app causes the javascript to be injected. To disable the application, click on Apps for the domain, and then scroll down to Smart Errors and click the toggle to change it to 'Off'.

Turning on certain optional apps and performance issues will inject JavaScript because that's how they work.

发布评论

评论列表(0)

  1. 暂无评论