Home Reference Section Developer Notes
Developer Notes

Notes made during the development of various systems; they may be of use to someone!




Spam-me-not E-mail Link Obfuscator Print
Wednesday, 10 February 2010 00:18

This article is aimed at website developers.

When developing websites, it would not be uncommon to provide a contact email address on the site. Unfortunately, there are plenty of Spam Robots trawling the web looking for email addresses they can harvest.

One way to avoid this is to have a Contact Form on the website for people to fill in, which will hide the actual email address used. However, many users (myself included!) do not like to use these forms - they may want to keep a record of what was written or include an attachment.

So, here is where the Email Link Obfuscator comes in. It converts both the HREF and link text into base ascii code. For example, "paul" is represented as "paul". The web browser will render the text as normal, but any robots will be presented with the raw codes.