Obfuscating mailto field
If you would like to post your e-mail address on the web page and you
want to prevent spam bots from harvesting your address someone figured
out a clever way to obfuscate the e-mail address using HTML codes
instead of characters ie. mai instead of a. For example address
vuksan@veus.hr converts into
<a
href='mailto:%76%75%6b%73%61%6e%40v%65%75s%2e%68r'>vuksan@veus.hr</a>
This is not a bulletproof solution. Eventually spamers will figure it
out but for right now this may slow them down a little bit. Since I
started using it I haven't seen a spam e-mail :-).
The script was originally at
http://www.zend.com/codex.php?id=975&single=1
I didn't like parts of the script so I modified it. Final result is
following
obfuscate.php
To download the files click here:
obfuscate.phps
obfuscate_mailto.phps