0 Comments

Anti-Spam Email Addresses

Providing an email address on your website may seem harmless enough but this is a genuine concern when it comes to inbox spam. If you’re not happy just to deal with the spam as it turns up then you have a couple of options that can help to curb the flow of spam.

Contact Forms

Adding a contact form to your site is generally a good solution to this problem as your email address is handled at the server and not sent to the web browser or ever output to a web page. Taking this course of action means that no-one including web crawlers know your email address until you respond to the email enquiry. Including a “no-robot” CAPTCHA security token on the form is generally a pretty wise practice too. This is all good but what if you need to display a public email address? You could try a client-side solution such as JavaScript.

JavaScript

You can use javascript to display an email address, transformed once it gets to the users browser. As the real email address is not served within the html source of the website, spammers have little chance of actually intercepting the address. Relying on this method of presenting an email address means that guests browsing your site with JavaScript turned off will not be able to see your email address either.

 

Post Your Comment