Neil Turner's Blog

Blogging about technology and randomness since 2002

A sort-of solution

If there is at least 1 comment and 1 trackback to this post, then it means that my ‘solution’ to the comment spam worked. I won’t tell you how I did it just yet, although you can probably get an idea by looking at the source code for the individual archive page for this entry.
Note that comments and trackback pings may not work on over entries in the meantime. (should be fixed now)
Update: Okay, it works, so here’s how to do it:

  1. Open your FTP client and find the folder where you installed Movable Type.
  2. Now, rename mt-comments.cgi to something else. It will need to end in .cgi or .pl , but you can call it anything before the dot. I called mine ‘post2site.cgi’ but you can choose something different, and certainly if everyone had something different it would make the attempts of these spammer bots somewhat futile.
  3. You can do the same to your trackback script if you wish.
  4. Now, open mt.cfg and scroll down to find the line that starts ‘# CommentScript’. Remove the # character, and then replace ‘’ with the new name of the script. For example, mine now reads ‘CommentScript post2site.cgi’.
  5. If you have changed any of the other filenames, do the same.
  6. Now, log in to Movable Type, and rebuild all of your files, to update the file paths in your entry files.

This isn’t a perfect solution, but it may well help stop the flow of braindead SEOs trying to hijack blogs to get higher Google PageRank scores.
You can get an idea of the size of the problem because both Richard and David are currently ranting about the subject.


  1. This is a test comment, to see if the changes I made worked. If you can see this then the change was successful.

  2. A sort-of solution

    This is a test trackback ping. If you can see it then the modified trackback process works.

  3. Hey Neil thanks. Been having a bit of a problem with the same thing for a couple months now. Zip Code address sites etc…
    Nice to see a way to stop that and hopefully curb what will become a problem.

  4. OK, the comment spam is starting to get to me

    I’ve been getting a pile of stupid comments on the site, many of them loaded with URLs for casinos, male enhancement, among other crap. I don’t want to have to…

  5. Die Comment Spam, Die!

    For like the last two weeks I have woken up every morning to a piece of comment spam on my…

  6. Great tip! I’m on it right now! Definitely a sick and disgusting new development for the lowlifes.

  7. Damn jerk offs

    It’s really crazy. :angryfire: I found some jerk off had posted a bunch of comments to the blog to advertise…

  8. Blogging: Comment Spam

    Like practically everybody else in the blogsphere at the moment, I’m suffering quite a bit of comment spam: I had to block my first IP address yesterday – and now I’m blocking the following 7 IP addresses: 2…

  9. New Spam

    Here’s an interesting one: somebody’s using my comments system to post spam.

  10. Blacklisted and Tweaked

    MT-Blacklist appears to supercede any mods you’ve made to comment notifications. Here are a few links to work-arounds, plus a few other Comment Notifcation Mods you may want to try, and some nifty hacks I found along the way.