Make your contact email address spam proof using javascript
This topic might be interesting for blogger’s / tech geeks. Are you get annoyed by spam mails, because you published your email address on your blogs / contact page of your site. Here is a workaround for it, you can simply use some client side scripting to print the email address on the site document.
<script type=”text/javascript”>
var your_email_address = ‘your address’ + ‘@’ + ‘your domain.com’;
document.write(’<a href=”mailto:’ + your_email_address + ‘”>Contact me</a>’);
</script>
Any change for email address display in user perspective?
Absolutely No! Since we are printing it into the document.
What we gain?
We can make the document spam proof.
You know how the spam bots works? It simply crawl your site and parse your document, during the parsingĀ programs grabs all email addresses in source document. Spam doesn’t bother about the client side programs normally, moreover it need a client side virtual machine to execute the client side javascript code.
Thus your email address won’t displayed in the document. It is cool idea right?
Another workaround to make spam proof is adding your email address as image !!!
