September 25th, 2004

MT/WP anti-spam tricks

The following is a trick to prevent spamming by bots in Movable Type 2.x. While this blog doesnt run MT, several other blogs I manage still do, and I have found this to be a surprisingly effective method to disable automated spam bots.
Rename the post field in your MT templates from post to something else. You will have to do this in all of your templates that have a comment form. Then go to MTAppComments and on line 29 modify the post value to your new field name. Whatever you do, if you use MT, be sure to get the latest version of MT-Blacklist. (This tactic can be used with almost any scripted comment system, if you aren’t afraid to get into its guts and redo changes after updating.)

Now a tip for WordPress users: unless you get frequent legitimate comments with many links, lower the default value of links allowed without moderation at Options ->Discussion->Comment Moderation. You can then use the Mass Edit Mode to delete spam posts. Also be sure to update your default spam word lists from the WP-Wiki.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Before you post, please recite the intellectual's prayer:

Dear god(s), Grant me courage and eloquence to boldly speak the truth when I know it; honesty to keep my mouth shut when I don't, the wisdom to know the difference, and the determination and integrity to discover the facts.
--David Veksler