Click to See Complete Forum and Search --> : does this code...


bullet
11-24-2003, 11:06 PM
...REALLY work as advertised??

Greetings all, I'm another newbie and while trying to figure out a way to keep my website email from being spammed into uselessness, I ran across this bit of code:

<!-- Begin
user = "email";
site = "domain.com";
document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(user + '@' + site + '</a>');
// End -->

I'm curious if this ACTUALLY does keep the trolling spambots from snagging your emaill address?

Thanks!

Gollum
11-25-2003, 02:08 AM
Welcome to the spambot/avoidance arms race :)

These days spambots probably don't go to the trouble to 'decode' your script but as ever, computers are getting faster, software more sophisticated. It shouldn't be long before spambots start running the javascript on the page to see what the end result looks like before searching for mailto: tags.

Have a look here (http://www.turnstep.com/Spambot/html.html) for some hints.