One way the spammers got email addresses is, they collect email addresses from web pages. They use robots that crawl web pages and find any text like 'name@domain'.
To combat this email collector robots, make some small modifications to the emails you want to display. This will make the robots difficult to recognize your email addresses, but still readable by humans. For example, if your email is rahma.sarita@gmail.com, you might want to display it like this:
rahma.sarita @ gmail.com
rahma.sarita [at] gmail.com
rahma [dot] sarita [at] gmail [dot] com
rahma.sarixx@gmail.com
Here's the code:
Listing 1: listing-1.php
Note that even this trick is useless if your mailto link still point to the original email address. Link to the modified one. Relax, a few lines of javascript will solve all problems.
Listing 2: page.html
See, the javascript code above will 'fix' the email address and open up the user's email client program. Now for some demos:
Send your email to:
nashruddin.amin @ gmail.com
nashruddin.amin [at] gmail.com
nashruddin [dot] amin [at] gmail [dot] com
Done. This trick will save you from those spammers, at least the stupid one. :)
Nash on May 22, 2008:
Nadir on May 29, 2008:
Nash on May 30, 2008:
| Tel. | +62 31 8662872 +62 856 338 6017 |
| ICQ | 489571630 |
| Skype | dede_bl4ckheart |
| Yahoo | dede_bl4ckheart |
| nashruddin.amin |
Your Missed Friend :) on May 22, 2008:
give me your private number please
-------
heri