« Share the Love - through Amazon.com | Main | Six Apart Guide To Combatting Comment Spam »

Closing Comments

One measure to guard against spam is to close comments on old blog entries. This is easy enough to do.


At the bottom of your Edit Entry window is the pull-down for none, open, or closed comments. If you don't see this as pictured, click on "Customize the display of this page" link, select "Custom" and select the fields you wish displayed, including "Allow Comments".

You can also set comments to be open, closed or non-existent by default through the weblog config window, Preferences section. Under "Comment Configuration" see "Allow Comments" Default. Note that you can override this default via your selection on the individual entry.


There are several plugins that can be used to automatically close comments on old entries. See:

  1. Mark Carey's BlogJanitor
  2. Conversation Killer
  3. MT-CloseComments by Alan Carroll
  4. David Raynes' MT-Close


If you are using the MySQL database it is pretty easy to go in with CPANEL or a tool like CocoaMySQL for the Mac and edit the database to close comments on many entries at once.

"Comments are now closed" Message

If you do close comments, after they've been open and have accumulated a few, it helps to let your visitors know that comments are actually closed. Otherwise it can be a bit confusing; they see a link to comments, a list of comments, but no place to leave a comment.

To leave a "Comments are now closed" message that shows up when comments are closed, but not when they are open or non-existent, you can add the following code to the default MT Individual Entry Archive (assuming your comments are inline).

<p>Comments are now <b>closed</b> for this entry.</p><br />

Put this code right above the following tags in the MT3 default Individual Entry Archive template:


Comments (1)

Twist Author Profile Page:

I have found the MT 3.2 plug-in CCode to be amazingly effective at preventing comment spam. I don't have the additional TCode plug-in enabled so I can't say if it works or not but CCode is brilliant. You only have to install the plug-in and add one simple line of code to your template and you are set.

Post a comment

(If you haven't left a comment here before, your comment may need to be approved before will appear on the entry. Thanks for waiting.)