If you leave an email address on your site in order to be contacted by visitors or site users, this could be easily detected by spiders or robots which crawl the web to find email addresses for spam purposes. There are many methods to protect your email from spammers, but none of them will guarantee a full protection. The simplest methods would be either using equivalent ASCII codes for your email or email encryption.
By converting your email name in ASCII codes or only the "@" character (& # 6 4 -is @ ASCII code-use it without spaces), the web browser will display the email name normally, such as [email protected], but the spiders will be confused and will not recognize your email. But this practice is not so secure, just as writing the email name in the form "me at domainexample dot com" isn?t either, because spammers could use parsers to automatically detect if your email name has this structure. As an alternative, you can use feedback forms, forms to email scripts or any other variant of HTML mail, in which the email is sent to your inbox by a server side script.
In this way, your email name is not available for spammers, but some disadvantages do exist, for example the possibility of virus code injection. Another common practice to protect your email is the insertion in the HTML body of a javascript code that will hide the email name from spiders. For example, corresponding to the email name [email protected] the javascript code is:
var emailfront = "me"
var emailback = "domainexample.com"
document.write("" + recipient + "")