J
J
Justin Bieber2016-07-07 19:32:09
PHP
Justin Bieber, 2016-07-07 19:32:09

What is this code at the bottom of the landing page?

/* <![CDATA[ */(function(d,s,a,i,j,r,l,m,t){try{l=d.getElementsByTagName('a');t=d.createElement('textarea');for(i=0;l.length-i;i++){try{a=l[i].href;s=a.indexOf('/cdn-cgi/l/email-protection');m=a.length;if(a&&s>-1&&m>28){j=28+s;s='';if(j<m){r='0x'+a.substr(j,2)|0;for(j+=2;j<m&&a.charAt(j)!='X';j+=2)s+='%'+('0'+('0x'+a.substr(j,2)^r).toString(16)).slice(-2);j++;s=decodeURIComponent(s)+a.substr(j,m-j)}t.innerHTML=s.replace(/</g,'&lt;').replace(/>/g,'&gt;');l[i].href='mailto:'+t.value}}catch(e){}}}catch(e){}})(document);/* ]]> */

this code to protect soap parsing? how to know if it works? and where does it come from?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Alekhin, 2016-07-07
@Settler1

cloudflare? I saw something like that with them. There is nothing wrong here, just a function that replaces "<", ">" with codes. Does a good job as I understand it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question