Forum Moderators: open
The idea of course is to avoid e-mail harvesters/spam. I am using the following on line tool to encrypt my links.
[hiveware.com ]
If you know off a better way to accomplish this let us know.
Can any one think of any valid reasons why using JavaScript encryption of mailto links is not a good idea, Other than people with javascript turned off.
I added this little code to my page:
<script type="text/JavaScript"> var n='webmaster'; var d='mysite.com';
document.write('<a href=\"mailto:' + n + '@' + d + '\">');</script>
webmaster (@) mysite.com
<script type="text/JavaScript"> document.write('<\/a>');</script>
But I was still getting SPAM sent to webmaster@mysite.com. After a while it dawned on me that they are not only harvesting email-addresses - they are also making them, by prefixing "webmaster", "sales" etc. to my domain name.
In witch case the mail address appears in the hidden form field [...]
nono, of course this way the harvester still gets the address. The idea is to "hardcode" the address into the form mailer processing script itself (some examples here [simplythebest.net...] If you are already running such a script, remove the hidden field and check the script for a line with the mail command containing the parameter "From:". You should find a variable with the value from your hidden field there. Just replace it with the real e-mail-address, so the client (browser/harvester) will never see it.