Ed Price is Hungry

(but not very often)

Tip: Five bucks on Dashing Zebedee

Preventing comment spam

Comment spam is one of the great scourges of the internet, which is why there are so many measures available to counter it. Some are more effective than others, some introduce more problems than they fix. Here I outline a few of the techniques that seem to have worked on this particular blog.

As far as I understand it, comment spam can be broken into three main methods:

  1. Human: a genuine, real live person actually sits there and types a spam message into your comment form – unsurprisingly this is the least common form
  2. Bot: an automated script scans your website, finds your comment form, generates a spam message and posts it to your site
  3. Harvester: yet another script scans your website, finds your comment form and copies it – days, weeks or months later the offsite copy of your form is used to start submitting spam messages to your site

We’ll look at some methods for combating each of these in turn.

Only human

Other than comment moderation (wherein you give yourself the power of God over each and every message posted to your site) there’s not a great deal that can be done about the human-generated spam. Some filtering services, such as Akismet, will scan the content of messages to determine the likelihood of it being spam and deal with it accordingly. Akismet is closely associated with Wordpress, but can be used on other platforms and is free for non-commercial use.

I personally haven’t implemented it on my blog, but it’s doubtless a handy addition for sites that attract heavy traffic. It’s probably worth pointing out that using such a third-party service takes some of the control out of your hands, but is likely a small price to pay if human-generated spam is causing real problems.

You could also set up a login system and force users to create accounts in order to post comments. This might deter spammers, but it might also deter users (it certainly deters me since the last thing I want to do is to create yet another account somewhere just so I can post a brief comment on someone else's site). However, there's always the possibility of using OpenID, which enables people to either use an existing account or create a generic account for all OpenID supported platforms (and here's an interesting article covering how easy it could be for people to use OpenID).

Posted:  February 24, 2010 at 16:19

Filed under: Web Design

Author: Justin (contact)

Last edit: February 25, 2010 - 12:21

2 comments

JayZee March 1, 2010 - 18:01

Brilliant article. I've been toying with the idea of using emotion as verification. For example, pointing the user to a news article (or forcing them to read a sentence) and asking them if it made them happy or sad. eg "Cute little puppies in a washing machine = sad" but "washing cute little puppies = happy"

JRC March 1, 2010 - 19:23

Great idea - but what if you like sticking cute puppies in a washing machine? Or is this a form of psychological evaluation designed to stop the 'wrong' people from commenting? If so - it could be the latest thing (just don't tell Murdoch)

Add a comment

All comments are subject to approval prior to appearing on the site.
HTML code is NOT allowed and will be stripped out.

Please enter the sum of six plus one in digits (e.g '19')

Search

Recently posted
Categories
Tags
Monthly Archives

Feeds RSS logo
Copyright

The content on this blog is protected by a Creative Commons license. This is purely to stop people from doing nasty things with my words - in the unlikely event that you do want to reproduce any content here just ask

Creative Commons License

Ed Price Is Hungry by Justin Cawthorne is licensed under a Creative Commons Attribution-Non-Commercial-No Derivative Works 3.0 Unported License.
Based on a work at www.edpriceishungry.com