Machou
Machou

Reputation: 171

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

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:"**.com",rocket:"0",apps:{}}];var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.async=!0;a.src="//ajax.cloudflare.com/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

Upvotes: 6

Views: 7720

Answers (2)

Leigh  McCulloch
Leigh McCulloch

Reputation: 1976

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'.

Upvotes: 5

damoncloudflare
damoncloudflare

Reputation: 2087

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

Upvotes: 1

Related Questions