I've been trawling around trying to get links for one of my sites and lots say "after you've added a link email us" and give an email address. When I view the source the email is given like this:
which is 100% readable by both browsers and spammers.Code:<a href='mailto:me@mysite.com'>me@mysite.com</a>
I've written a script to "obfuscate" email addresses and you can create protected html. The output can be read by browsers but the spammers appear to be too lazy to code for it, probably because there's plenty of easy addresses to harvest.
so the address above becomes (broken abit to stop it being parsed)
<a href='& #109;& #97;& #105;& #108;& #116;& #111;:& #109;e& #64;& #109;& #121;& #115;& #105;& #116;& #101;& #46;& #99;& #111;& #109;'>& #109;& #101;& #64;& #109;& #121;& #115;& #105;& #116;& #101;& #46;& #99;& #111;& #109;</a>[/pre]
Now this can be hard to edit, and I mostly code in PHP so I just create an array at the top of my page with each type of address and then just echo the variable name. Easier to manage and I'm still winning the spammer battle.
Try it if you like, and feel free pass it on to others.
I don't record the email addresses converted by this, there's no tracking of it's use other than my standard hitcounter.




Reply With Quote
