Be Good Not Bad by Brian Warren

9 January 2006

Anti Spam Plugin

I wrote a little plugin for Textpattern that tries to block comment spam. It doens’t do much, but it seems to work well enough. It checks against a common set of (configurable) keywords, and also checks to see how many URLs are present in the comment. If anything looks mildly suspicious, it hides the comment and marks it as needing moderation before going live. If things look very suspicious, then it marks it as spam.

If you use Textpattern, and are using version 4.0.3 or later, try it out.

Download the plugin file below. Copy and paste from it in the Admin > Plugins section of Textpattern