Ask Leo! by Leo A. Notenboom

How do I stop comment spam in my blog?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Web » Web Site Management

Summary: "Comment Spam" places links to spammers websites in the comments of blogs around the internet. There are various techniques to combat it.

How do I stop comment spam in my blog?

I almost titled this entry "What does a porn site have to do with Ask Leo!" because I was getting regular comments that were nothing more than attempts to post a link to porn sites. Naturally I removed them as soon as I was notified about each but that's time consuming and annoying. It was easy to see that the comment spam was machine-generated because the posts were extremely similar right down to bad grammar and misspellings.

I had one technique in place for some time but it was still allowing this class of spam to get through. Time to break out some bigger guns.

For the record, Ask Leo! is powered by Movable Type so the techniques I'm outlining here are specific to that.

My first attempt some months ago was simply to rename the comment addition script from the default name used by Movable Type. That actually worked very well until just recently. I had been getting several bogus comment posts per day and they simply went way for some time.

Recently though, I started getting more porn posts and decided to go for a solution I had seen on several of my friends blogs: the use of a Captcha Turing Test. You've probably seen them, you're presented with a graphic that contains a somewhat obscured number or word and you are asked to re-type what you see. This is intended to "prove" that you're a real person and not a computer because presumably a computer running an automated spam-bot could not read the text in the graphic.

James Seng has in fact created a Captcha Turning Test for Movable Type called SCode. Installation proved to be a bit of work so it's possible that this is not for the weak of heart. In my case I needed to upgrade a graphics library on my server which involved downloading, rebuilding and installing that library, and then rebuilding SCode and installing that. Then when all that seems to be done all of the comment templates needed to be altered to include the actual test presented to commenters.

It was a bit of work but it appears to be working. I'll still delete inappropriate posts but at least number of those should decrease dramatically.

If this solution seems a bit daunting for you then perhaps a visit to blogspam.org is in order. They have a number of solutions for preventing spam on Movable Type and other content management systems.

Related:

Article C1903 - March 10, 2004

Was this article helpful? «Yes» «No»

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Recent Comments
11 Comments

you should also check out recaptcha.net pretty sweet and barely anything to install.

Posted by: ding at June 25, 2007 2:29 PM

After using Captcha, there seem to be a certain decrement in spam messages that i used to receive regularly. And the news about the Update of Captcha is also quite pleasing one, because i too found some loopholes in the previous version and was concerned about those too. I hope that the mistakes would have been identified and being removed. In the whole i have been busy in looking some useful websites regarding Anti-spamming solutions and i would like to share the site that i found most useful.
http://anti-spam-info.com
After going through this web, you’ll certainly find it worth full to be shared.

Posted by: Roger at October 4, 2007 3:19 AM

I stopped all my comment spam for my Wordpress blog by using "Comment Bot Nuker". All the other plugins I tried for Wordpress only holds the comment spam from moderation. I tried them all even the "add math" and Askimet. Most all the comment spam you will get is actually from the bots that scour the Internet looking for security breaches. Using Comment Bot Nuker it nukes the comments before it is even held for moeration and lets the good comments through. So there is nothing to moderate. I don't have to go through hundreds of comments held for moderation anymore. I foudn it here:
http://videomarketingtactics.com/vmt/stop-wordpress-spam

Posted by: Frank Bruno at February 20, 2008 9:48 AM

Yeah comment spamming is an issue even nowadays. I'm using Akismet on my SEO blog Malta which seems to do the trick.

Posted by: Mark Debattista at April 15, 2009 1:15 AM

Well, if you use wordpress the best thing you can do is to install a plugin that stops spam. Well, it is called Akismet and you can find him among wordpress files, but after installation you have to activate it. For more info on this you can check http://www.flamescorpion.com

Posted by: Lucian at February 4, 2010 2:25 AM

Post a comment on "How do I stop comment spam in my blog?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!