Discuss: Graceful E-Mail Obfuscation
by Roel Van Gils
- Editorial Comments
Got something to say?
Discuss this article. We reserve the right to delete flames, trolls, and wood nymphs.
Create a new account or sign in below if you’d like to leave a comment.
Subscribe to this article's comments: RSS (what’s this?)






101 A regex free obfuscator
I wrote an email obfuscation routine at http://www.php-ease.com/functions/email_link.html that does what you did, but steps it up a notch. I wrote a function that base64 encodes the entire mailto link and I put it in the title attribute. When a user hovers over it with a mouse (yeah, I know, not everyone has javascript – and for this I don’t care), THEN the title is decoded, placed into the href attribute before they click on the link, and when their mouse leaves the anchor area it then becomes obfuscated again. To step it up a notch, I also rot13 it, but that’s not included in the script I provide. This solves all of the problems of +‘s, extra periods, even chinese characters.
posted at 02:50 am on November 19, 2010 by paralogizing