If you’ve included your email address in your site then you’d definitely get junk mail that clogs your inbox. The Spam Bots and Spam Crawlers crawl through the web pages constantly and add all the email address they encounter to their lists.
I wanted a solution that can generate the email address from an obscure form into a valid one on the fly, and thus resulted in safeMail.
The safeMail script uses DOM to scan the page and convert all the matching email entries into valid email links.
All you’ve to do is to download the ‘safeMail.js‘ file and include it in the header of the page where you’ve got one or more email address. The format you need to define the email address is,
yourname [at] gmail [dot] com
The script will replace this as ,
View the safeMail in action
You are free to modify this code and please link back to this page. If you’ve any suggestions or found any errors or facing any problem in implementing the safeMail, post it in the comments and I’ll be very glad to help you. If you find a better solution please share it with me