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.






We donate and support our local surf life saving heroes. Each year, trained volunteer surf lifesavers provide more than 1.1 million hours of patrol time on weekends and public holidays. It has been estimated that if not for the efforts of Australia’s surf lifesavers, around 500 people would drown around the coast each year.
0 Comments