- 21
- Jul
Silvan over at techblog.tilllate.com has done some research results for us on the best ways of obfuscating email addresses on a web page.
The method used involved nine different code snippits and came up with three over a period of one and a half years that received zero spam.
The Three Methods:
- Changing the code direction with CSS:
- Using CSS display:none:
- ROT13 Encryption (using rot13 or str_rot13):
HTML
-
<script type="text/javascript">
-
document.write("<n uers=\"znvygb:fvyinasbbone10@gvyyyngr.pbz\" ery=\"absbyybj\">".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c<="Z"?90:122)>=(cc=c.charCodeAt(0)+13)?c:c-26);}));
-
</script>silvanfoobar’s Mail</a>
-
See more about this at techblog.tilllate.com. I noticed he didn’t other methods that I’ve seen such as breaking out the email address in a non-visible table, etc.
Have any other tips to obfuscate email addresses? Let us know in the comments.


