This module is a simple regular expression filter that automatically sets nodes and comments to unpublished if they match one or more regular expressions that you specify.

Instructions

The settings for this module can be found in the Configuration menu under the Content Authoring section. Simply add a list of regular expressions to check, one per line, like this:

/foo/
/bar/
/whatever/

To give users access to bypass this filter, give their role the "Skip regex filter" permission.

If you're unfamiliar with regular expressions, you can learn about them here:

http://www.php.net/manual/en/reference.pcre.pattern.syntax.php

Notes

This is just a little module I whipped up to fight persistent spammers from specific sites. It is not in any way a complete spam fighting solution, but it can be handy in specific cases. It's also helpful for filtering swear words, racist comments, etc.

I have no intentions of adding any features to this module, as it works perfectly well for me as-is, although I will attempt to fix serious bugs if they appear.

Also note that I don't have time to help you debug your regular expressions. :)

Project information

Releases