Hide Your Email from Spammers with validating HTML

January 5, 2010

If you post an email address on a website you risk getting spam to that email address.  This is because there are many "spiders" (computer programs) on the internet that have one goal, to find email addresses.  Once they have your email address it will be added to a list and sold to spammers.
To avoid this there are a couple things you can do.
1) Use http://scr.im/ to hide your email address.
Scr.im will convert your email address into a short, cute and safe link you can share on the web,  in Twitter,  forums, Craigslist,  anywhere ...
2) Use JavaScript we have written below.
First add an anchor HTML tag with an id of "email" where you would like your email to be displayed.

Next add this JavaScript just before the closing body tag of your HTML. Change the email, contact and emailHost to your information and you are finished.

The code above is XHTML 1.0 Transitional.
Posted by Beau Durrant

Never miss a post.

Email Newsletter

* indicates required
V Strategies | Video Production

Privacy Policy
Copyright © V Strategies 2020

Calgary Office
1918 – 9 Avenue SE
Calgary, AB
T2G 0V2
1+ 403 229 2511
Get Directions

Think Visual BlogOur Blog
Contact Us Now
linkedin-squaretwitteryoutube-playinstagramfacebook-officialvimeo