Email Obfuscation Test Failed

Email address obfuscation is not working for me.

So far I have

  1. Enabled Scrape Shield → Email Address Obfuscation
  2. Created a simple page, attached.
  3. Looked at the html source in Brave, Safari and Fire Fox
  4. Confirmed the MIME type is text/html

I don’t think I’m using Cache-Control: no-transform header, but am not sure how to check.
Thanks,
Matt

https://makermattdesign.com/email_obfuscation_test.html

<!DOCTYPE html>
<html>
<head>
<title>Cloudflare Email Obfuscuration Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>

<a href="mailto:[email protected]">[email protected]</a>

</body>
</html>

It’s working.

$ curl https://makermattdesign.com/email_obfuscation_test.html
<!DOCTYPE html>
<html>
<head>
<title>Cloudflare Email Obfuscuration Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>

<a href="/cdn-cgi/l/email-protection#5a2e3f292e1a3f373b333674393537"><span class="__cf_email__" data-cfemail="bdc9d8cec9fdd8d0dcd4d193ded2d0">[email&#160;protected]</span></a>

<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script></body>
2 Likes

This is good news and thanks for the fast response, and for reminding me about curl. What I don’t understand is when I inspect the HTML source in a browser, it looks like clear text.

Thanks again!

That is because it is. The email has already been decoded by a JavaScript function. Before being decoded, it is shown as [email protected].
image

Email Obfuscation only protects against basic scrapers. It does not work if the scraper renders the page using a headless browser.

3 Likes

That helps, thanks so much

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.