Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I've seen this email protection on a website and would like to know how they have achieved this [duplicate]

I would like to know how I can replicate this sort of email protection and what parts of it actually does what please.

 <a href="cdn-cgi/l/email-protection.html#d7a7a5bea1b6b4ae97b0b6a3bfb2a5b4b8b9a3b2b9a3f9b4b8ba"><span class="__cf_email__" data-cfemail="0474766d7265677d446365706c6176676b6a70616a702a676b69">[email&#160;protected]</span><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script></a>
like image 621
Jamie Avatar asked Jun 07 '17 17:06

Jamie


People also ask

What is email protection and how does it work?

Email protection refers to technology designed to prevent, detect and respond to cyber-attacks delivered through email. The term covers everything from gateways email systems to user behaviour to related support services and security tools.

How to protect email address from hackers?

if you are looking for ways to protect email address on website, then the easiest thing that you can do is to download and install Email Address Encoder plugin. This handy little plugin comes with several filters which you can use to prevent it from being scanned by hackers.

How do I protect my HTML email address from being harvested?

HTML email link via redirect In order to effectively protect email addresses from harvesters, it’s a good idea to separate them from the website. A script is generally used, which redirects human users to the mailto link after the first click. This opens the user’s email program and displays the address.

Should I disclose my email in plain text?

Displaying your email in plain text does not provide your users the opportunity to speak out. If you link the email via mailto:, it will open up your users’ email in Gmail, Apple Mail, Outlook or other email platforms. They will need to decide what subject and information to provide for their inquiry.


1 Answers

This is CloudFlare's dynamic email obfuscation. CloudFlare automatically apply the obfuscation to websites that they protect.

If your website is protected by CloudFlare, you can turn the feature on by signing in to the dashboard then Cloudflare.com > ScrapeShield > Email Obfuscation.

like image 160
MrCode Avatar answered Oct 06 '22 20:10

MrCode