WEBSITE DEVELOPMENTBecause of the ongoing problem of spam, it is important to have your email address on your website coded in such a way that would protect it from email harvesting bots — whose intent it is to fill your mailbox with spam.
We've discovered two easy methods you may implement to protect any displayed email address. One way is to encode your address on the web page itself. The other way uses a JavaScript to encode and send the email from the server. Both are presented below:
This is an easy solution to protect your email address:
Normally, a 'mailto' statement (which automatically sets up an email) looks like this:
<a href="mailto:YourName@YourSite.com">CLICK HERE TO EMAIL ME</a>
By replacing the '@' symbol with '@' we get a line of code that the email harvesting bots don't recognize as a viable email address. However, when a user clicks on the link it will still work.
Simply cut and paste the code below wherever you would like to display your email address. Be sure to change the code in orange to include your real information.
<a href="mailto:YourName@YourSite.com">CLICK HERE TO EMAIL ME</a>
Link will look as normal the browser: CLICK HERE TO EMAIL ME
Here we are using a JavaScript to encode your whole mailto statement. Once encoded you can just paste the results into your page and once again it will work fine.
You are welcome to include the following link on your site:
<a href="http://astaara.com/spam-blocker.html">SPAM BLOCKER - PROTECT YOUR EMAIL ADDRESS!</a>