How to hide your email address from spammers, a thorough guide

Every IT professional worth his/her salt has their own webpage/blog these days. While you may have people from all over the globe dropping a line at your site, Email harvesters are the most unwanted visitors on any website. These email spambots crawl the web via search engines to find and extract email addresses from webpages. E-mail addresses in your blog or webpage are no secret to spam robots. Here’s a guide that should help you protect your email addresses from these spam spiders. Techniques mentioned use text manipulation, Masking, HTML, Flash, CSS, and JS to hide email addresses.
How email spammers operate? Email addresses always contain an @ symbol. Most spambots do a pattern-search for likely combinations of letters ([email protected]) like [email protected] or [email protected] in the HTML source of webpages. Often they just search for the @ character and grab all the letters on each side on the assumption that it’s a valid email address.
How to keep your email address available to humans but invisible to email spiders? There are tons of Email Address Protector software that claim to protect your email address in web pages and get rid of junk mail – Don’t waste your money, they only encode your email or generate a javascript snippet. We will discuss manual email encoding techniques here. If a visitor clicks an encryped email link on your website, it will work as normal, but spam robots will not be able to extract the address from the link.
#1: Replace the AT (@) and DOT (.) symbols:

The most common approach to block email harvesting is to remove the @ symbol. If you eliminate the @ from email addresses then most spambots won’t be able to recognize that the text is actually an email addresses: Here are some examples:
ajit AT askstudent DOT com ajit (at) askstudent.com [email protected] ajit_AT_askstudent_DOT_com
#2: Mask your email with tags, append meaningful words:

Consider “masking” your email address. Masking involves putting a word or phrase in your email address so that it will trick a harvesting computer program, but not a person. Some email masking examples commonly employed by newsgroups and mailing list subscribers:
[email protected] [email protected] [email protected]
#3: Replace text with an image:

This technique involves creating a graphic or screen capture of your email address text in jpg, png or gif formats and display that picture instead of the actual address string. Robots and spiders can’t read the text that is embedded in the image. Anyone who wants to email you will have to manually type in your address though.
#4: Email Obfuscators:

E-mail Obfuscator make you email less vulnerable to spammers. Using an online email Obfuscator, convert (or disguise) individual characters of your email address into corresponding ASCII code (a <=> a hex coding) For example, the email address [email protected] is represented in ASCII as: [email protected] The above ASCII string can be used as arguement for mailto: HTML tag as shown here. Email addresses will appear perfectly normal, and will even be clickable, to human visitors to your website. e-mail to confuse sniffer ASCII_STRING
#5: Encode the mailto: and @ symbols with special HTML characters
Encode the mailto: and @ characters with this code: mailto: changes to mailto @ changes to @
The email link HTML code to hide your email address will look like: < a href=”[email protected]” mce_href=”[email protected]” >hidden email< /a>
Hide email using CSS trick (direction property)
Scramble the email – While coding HTML, jumble and write the email address in reverse direction. ([email protected] should be written as moc.b@a). We can then use CSS stylesheet to reverse the email address againwhen rendering. Here’s the sample HTML code with CSS. < style type=”text/css”> .backwards {unicode-bidi:bidi-override; direction: rtl;} < /style> < span class=”backwards”>moc.b@a< /span>

If someone copies your email address, it will available in the reverse direction. Would not work on older browsers.

Use Macromedia Flash You can easily create a tiny.swf file in Flash with embedded mailto: behaviour. The button action used to pick up the text held in the variables is: on (release){ getURL (“mailto:” +recipient+ “?cc=” + cc + “&subject=” + subject + “&body=” +body) } Requires Macromedia Flash player on client’s machine.

How to hide your email address from spammers with JavaScript

Let’s look at more advanced methods that use javascipt to hide the email ([email protected]). Remember to use noscript tags since some users prefer to disable javascript in browsers:

1. Basic Email Script

2. Basic Mailto: Email Script with Link Text

3. Inline JavaScript
Send me an email

4. External JavaScript file

The external javascript contains the code mentioned in 2 above.

Enkoder Javscript Form
The enkoder form script generated an encrypted javascript as shown below:

Original HTML: write email
Encrypted HTML code

Similar Posts:

  1. Obfuscation.. Obfuscation.. me [at] somewhere (dot) com;?subject=Yodaladyhoo&body=Remember to deobfuscate!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.