Tips for Combating Spam Bots At Your Site

Our host today is Noel Addison Agnote. If you're interested in getting in front of the readers of Site Sketch 101, check out our guest posting invitation here.

Internet marketers often hear of the word “bots” in a good light. After all, every website owner wants Google’s bots to crawl their site all throughout. But plenty of webmasters are not aware that not all bots are good, just ask John Connor. But I digress.

Essentially bots can do either good or bad things depending on the person that created it. So while Google or Yahoo! bots are very much welcome in our site, there are also other bots that we need to be wary of. Case in point is the presence of bots created to harvest important information from different sites through the World Wide Web.

These little virtual critters are programmed to go through all web pages available to them and grab whatever information they are ordered to gather like email addresses. These are usually used by shady internet marketers who are in the business of gathering email address and selling them to other business which in turn send marketing pitches and promises of wealth from Nigerian princes.

Sure, you can easily mark messages as spam but what if you have a website wherein people can create profile and leave their email addresses so that other members of the site can contact them? You are responsible for the safekeeping of said information. Do you want your site to be labeled as an email grabbing web space even if you have nothing to do with the people sending all those spam messages? I hope not.

Like King Leonidas you might ask “what can you do?” Fortunately, we have some answers for you.

The first web design trick I can share with you is not using the “@” symbol. Spam bots or harvester bots know what info to take back to their masters because they know how the data is formatted. Thus, they will be looking for the aforementioned symbol. What you can do to keep the email addresses safe from these World Wide Web wanderers is to replace the “@” symbol with its ASCII counterpart in your source code. So instead of yourname@domain.com, the bots would read yourname@domain.com.

Of course, the people making a living off gathering email addresses would not rest on their laurels and they also know this can thwart their plans. So, they might instruct their bots to look for that ASCII code. That means we have to think of another way to thwart this threat from spam bots. So behind door number 2 is Javascript.

Basically, you create a script where you would define different variables like the username, the domain, and the extension. Then, you order the script to concatenate these three variables with the addition of the “@” symbol in the right order. Underneath your site where the code lies, these spam bots would not be able to find the ASCII code for the “@” symbol. Instead, they will see the symbol itself but not in the format [email protected] so they would skip right over that bit.

There is a drawback too. If someone dropped by your site and he or she is using a browser with Javascript disabled (to stop pop-ups and make Javascript-laden sites with flashy graphic design load faster), the email address would not be displayed.

We’re screwed then? Not really thanks to the miracle of server-side scripting. Unlike Javascript which is client-side, server-side scripting allows you to have a simple email form which your website users can use without having the need to place the recipient email address anywhere on your site. Depending on what you are familiar with, you can use Perl, PHP, Cold Fusion, or ASP.

Unfortunately, there is somewhat of a problem here as some webhosts does not support server-side programming. If your site is hosted in such a place, you can turn to our first two tricks or you can just pack your bags and move your site because hosting flexibility is very important for any serious internet marketer.

Share your Opinion

and be a part of the discussion

  1. *Name (no keywords)

    *Mail

    Website

    * Indicates Required Fields
    Your Comment


17 Vibrant Comments

We would love to hear yours!


  1. August 10, 2011

    TrafficColeman said:

    this was something people did lots more of back in the day. But we seen it more on free classified ads sites.

    “Black Seo Guy “Signing Off”
    My Latest Blog Post: Why Are All You People Following Me?


  2. August 11, 2011

    greg ascentive said:

    I remember the good old days when “bots” generally meant computer-generated “fake” users on Internet Relay Chat (IRC), who ran off simple scripts that told them to behave in various ways.
    That was what bots meant in 1995…LOL. I bet wikipedia probably has an interesting article on the history of bots.


  3. August 11, 2011

    sam @ goa carnival said:

    No doubt in that old is gold which is related to bots system in old days, but now scenario is totally has change, so we should do some thing else.


  4. August 11, 2011

    Anders Rønnau said:

    Is there a wordpress plugin that can handle the javascript?

    Thanks

    Anders

    Ps: love the John Connor reference. ;)


  5. August 12, 2011

    ah hong said:

    Just check on the article from AskApache at http://www.askapache.com/htaccess/blocking-bad-bots-and-scrapers-with-htaccess.html. I guess it is possible to block such bot using .htaccess code itself :)
    My Latest Blog Post: Business Letter Writing Format


  6. August 13, 2011

    Allyson Stewart said:

    Interesting post, Noel. It’s too bad that we have to go through all these steps just to keep spam bots / spammers away! It’s great info., though and comes in handy. Don’t you wish the world were a better place?

    Thanks for the post.

    Allyson
    My Latest Blog Post: How to Fix a Broken Link on a Web Page


  7. August 13, 2011

    sanjay said:

    Will there be a draw back if the user copy the address and paste it in their email textbox?
    My Latest Blog Post: How to Prevent a Web Project Nightmare


  8. August 14, 2011

    Naruto@Film Megaupload said:

    hi, thanks for the information, is there any plugin spam editor automatically ???
    My Latest Blog Post: The Dark Knight Rises megaupload


  9. August 15, 2011

    john said:

    I’ve used a couple of WordPress plugins with a degree of success. What is the most successful means of fighting the spam bots is a simple form. WordPress has some nice plugins for this such as Cform.
    My Latest Blog Post: Home Theater Carpet Solutions


  10. August 25, 2011

    Sonny prince said:

    Brilliant article.


  11. September 24, 2011

    Scott said:

    Nice article Noel.
    I’m going to have to explore the use of js on my future sites. I typically do the ‘@’ or ‘at’ when displaying my contact information but was unaware that there were other (perhaps better) methods. Darn Bots!
    P.S. I like the one liner from 300 you threw in there.
    My Latest Blog Post: Personal Training Certification- Getting Started