Thursday, July 27, 2006

Email Obfuscation

Ok, for a long time I just included my email as something like "mitch[at]fincher[dot]org". Which works fairly well, but people wishing to email have to translate that to the real address and mail spammer could tweak their searching just a little to get the address.

I ran into a friend and he suggested using javascript to hide email address. This is not the strongest method, but it is easy. Mail spammer have to increase their technology quite a bit to run the javascript, not that they can't do it, but it's a lot more work and computing time. Here is a snippet:


<script type="text/javascript"><!--
var name = "fincherdotorg";
var domain = "gmail.com";
document.write('<a href=\"mailto:' + name + '@' + domain + '?subject=Note%20from%20website\">');
document.write(name + '@' + domain + '</a>');
// --></script>

No comments: