Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudFlare add an JavaScript code in my <head>, why?

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

like image 719
Machou Avatar asked Apr 01 '14 01:04

Machou


2 Answers

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

like image 80
Leigh McCulloch Avatar answered Sep 20 '22 02:09

Leigh McCulloch


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

like image 37
damoncloudflare Avatar answered Sep 19 '22 02:09

damoncloudflare