Forum Moderators: phranque
Does having a cgi form to let people email you on a site protect you against email harvesters taking you email address as opposed to just having an underlined email address that users can click on to launch a new message creation window from their email client or is there no advantage in a form?
There are other ways to encode your email address to prevent harvesters from getting it.
PHP Bag-O-Tricks II: Encoding email addresses [webmasterworld.com]
You can also use other tricks to have a non-scrapable email link on your pages. Some people encode parts of the email address, using entities like < and so on. This isn't foolproof, so should be combined with writing the link using javascript document.write statements, as well as cutting the link up and using more than one javascript command to write it.
While we're on this, seems to me that using a call to an external js file would mask an e-mail address from bots and cut down on the hundreds of 404s my sites get from mail bots trying to follow encrypted addys. Make any sense?
External javascript is great. It cuts out most of the screen scrapers. The email address link should be written out as several separate pieces though, just in case a simple robot parses all text looking for anything that matches "xxxxx@xxxxxx" in any part of any file. Add some entity encoding to it and you are several steps ahead of the spammers.
myusername AT mydomain DOT com
This means surfers will have to write in the email but it has cut my spam down considerably.