« | »

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) “dfjkdlkjfkljd@hotmail.com”.  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.

lanap-botdetect-asp-net-captcha_350

Captcha

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?

Tags: , ,

Category: Helpful Tips
Both comments and pings are currently closed.

3 Responses to “Stopping Spambots”

  1. Danny Foo says:

    Plenty – especially when MovableType at the time didn’t update their spam filters. One of the reasons I’ve moved to WordPress. Thanks to Spam Karma 2 and Akismet, I rarely get any spam now. 🙂

    If I really wanted to make spam combat tighter, I’d find a captcha plugin to include into my WordPress. However, there’s 1 problem I’ve found using WordPress. Too many plugins equals to slower load times.

  2. Bryan says:

    I get hit with tons of spam entries all the time. Both in personal scripts I have written and on here.

  3. Another interesting article from your blog 🙂 When will it stop….hopefully never

|

Flickr Photos

Quick Contact

Your Name (required)

Your Email

Your Message

captcha