CloudFlare add JavaScript code to my <head>, why?

I am using CloudFlare, I am checking out another site that uses CF, but they do not have 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>

Can anyone tell me how to disable this?

thank

+4
source share
2 answers

By default, CloudFlare has smart errors included in domains. This application calls javascript for input. To disable the application, click Appsfor the domain, and then scroll down to Smart Errors and click the switch to change it to Off.

+5
source

JavaScript, .

+1

Source: https://habr.com/ru/post/1534343/


All Articles