Posts Tagged ‘ spambots ’

Stopping Spambots

Where are these entries coming from?

After creating a website with a guestbook I started noticing entries which were not left by a person.  The name field was filed by an email address ie) “[email protected]”.  The comment would  contain jiberish like “auto auto something nothing”, and they were repeated quite often.In a few hours I have 10 entries that were from unknown origins.  Once, I noticed the entries, I figured removing the “submit” button would stop the entries temporarily until a better solution could be found.  That was wrong, I will explain how it was completed later on.

Resolving the mystery entries

I first, had to access the database and remove the spammed entries.  To stop false entries, there are two main solutions.

  1. Improve the server side validation
  2. Use a Captcha

Server Side Validation

My first option and the one I choice, was to improve my server side validation.  I realized they had a copy of the form and were submitting entries, so I improved what the server would approve.  Originally, it was set to allow any thing that had more then 3 characters.  After the update, no symbols would be allowed in names.  This solved my problem until the people figure it out and change their methods.



A much better method is to use a Captcha.  Websites like Myspace and Facebook have increased their usage of them to stop spam on their sites.

You enter a code the website generates when visit the page.  The spambots can not read the code, and as a result are unable to make a post.

End Result

I fixed the server side validation and was able to keep the nasty people away from my posts.

Have you had any problems with spammers in emails or on websites? What did you do to remove them?

Category: Helpful Tips | 3 Comments »