Technology TidBits

Answers to various technical questions on php programming, mysql, linux, and many more categories.
25% off Hosting at HostGator.com:
Use Code techbits25



How can I reduce comment spam on my Movable type website?

Last updated: 06/30/2009
This article is for movable type version 3.2 (free)


  1. Edit Comment Listing template

  2. Remove the line: <!-- MTCommentFields--->

    Paste in actual form from the "source" of your current form, or use the example form here:


                               Remove the field for the "URL" so it will not be submitted.


    2.  To disable posting a URL on the backend:

            Edit the file: mt/lib/MT/App/Comments.pm

      find this line:

      if ($comment->url) {

      (around line 275)

      Comment out the entire block and leave this as the final code:

    if ($comment->url) {
     return $app->handle_error($app->translate(
     "Invalid URL '[_1]'", $comment->url));
    }

    This will return an error if someone tries to pass in a url at all.  Since most spam bots are interested in posting a URL, this should effectively block them.
blog comments powered by Disqus
Have your own Tech-bit to contribute? Submit it here




Powered by KnowledgebasePublisher 1.1
Host Gator
Content provided by Roberts WebForge, Inc.