Anti-spamming email harvesting

26 February 2004   0 comments   Web development

Mind That Age!

This blog post is 14 years old! Most likely, its content is outdated. Especially if it's technical.

Stu's Site has a nice example of a way of preventing email harvesting by writing the email in reverse and then letting stylesheets reverse it when rendering. The HTML source looks like this:

<style type="text/css">
.backwards {unicode-bidi:bidi-override; direction: rtl;}
<span class="backwards">ku.oc.u7s@uts</span>

And the result is: It works on in my web browsers (win, linux), but the nasty effect is that if you select the text, copy and paste; when you paste it pastes it as ku.oc.u7s@uts. Pretty annoying.

My site uses hex encoding so the HTML looks like this:

<script language="JavaScript">eval(unescape('%64%6F...lots of these...%29'))</script>
<noscript>Peter, mail(at)peterbe dot com</noscript>

The result is as if no anti-harvesting effect had been applied.

Sadly I bet that spammers have tricks to get around both but what matters is how few spammers have yet to come up with the solution. I'm thinking of keeping my method and adding something that scrambles up the encoded string to break spammers regular expressions. But the effect mustn't be as bad as the example on Stu's site.


Your email will never ever be published

Related posts

Bugknits 25 February 2004
What will you not wear today? 27 February 2004
Related by Keyword:
CSS selector simplifier regular expression in JavaScript 20 December 2017
Advanced live-search with AngularJS 04 February 2014
This site is now 100% inline CSS and no bytes are wasted 05 March 2013
mincss "Clears the junk out of your CSS" 21 January 2013
UPPER vs. ILIKE 19 April 2010
Related by Text:
Be very careful with your add_header in Nginx! You might make your site insecure 11 February 2018
jQuery and Highslide JS 08 January 2008
I'm back! has been renewed 05 June 2005
Anti-McCain propaganda videos 12 August 2008
I'm Prolog 01 May 2007