Obfuscating E-mail address with Cloudflare

Prior getting to know about Cloudflare, I manually obfuscate my email address before posting it online to prevent it from being snapped by email harvesters and bots roaming the Internet looking for email addresses to add to their spam lists.
Cloudflare dynamically obfuscate E-mails on websites it is installed in so long the setting is turned ON.

I took few minutes of my time today to see for myself how Cloudflare obfuscate Emails. I did the research on this article.

Viewing the source code of the page, [email protected] was concealed and replace with the JavaScript code below.

[javascript]
<a class=”__cf_email__” href=”http://www.cloudflare.com/email-protection” data-cfemail=”20434f4c4c494e53605941484f4f0e434f4d”>[email&nbsp;protected]</a><script type=”text/javascript”>
/* <![CDATA[ */
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName(“script”);l=b[b.length-1].previousSibling;a=l.getAttribute(‘data-cfemail’);if(a){s=”;r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
</script>
[/javascript]

Weird isn’t it?

I will love to hear your thought on this.

Don’t miss out!
Subscribe to My Newsletter
Invalid email address