|
|
Protecting email address on web pages from spambotsThis tip will help you in protecting your email address from spambots. Avoiding spam is not easy and there are several steps you can take to stop spam. However, this tip describes just one of ways of protection against it. The tip describes how to prevent spambots from picking your email address from your web site. What is 'spam' and how to they get your email from a web page?SPAM is unsolicited email. It's something you never asked for and most of the times, it's garbage! But there is a way to fool spambots. If you write the email address as a series of special characters, instead of alphabet, it's highly unlikely that spambots would be able to pick it up. Each lowercase alphabet has a corresponding special character that we call a Character Entity. In addition to lowercase alphabet, there are special characters for @, the underscore, the period and the hyphen. You can find the full list of HTML Special Characters of Character Entities in the Web Design section. Now if you have an email address like bard@somewhere.com, you should write it as a series of special characters: This looks really messed up.. but that's the price you have to pay to protect yourself from spam. However, the above method is not foolproof. Addition of a few lines of code to the spambot can ensure that the script searches for email addresses in both human and character entity formats. The safest way to display an email address on a page is to use it as an image or a Flash file. However, with images if you use mailto, the purpose is lost. So a Flash file would be the best.
Page contents: Protecting email addresses on web pages from spambots by using HTML character entities or HTML special characters.
Page URL: http://www.webdevelopersnotes.com/tips/html/ protecting_email_address_on_web_pages_from_spambots.php3
|
|