Edgewall Software

Version 2 (modified by Christopher Lenz, 18 years ago) ( diff )

More docs for the SpamFilter plugin

Trac Spam Filtering

A plugin is being developed that will allow different ways to reject contributions that contain spam. This plugin requires the forthcoming Trac release 0.10. It currently needs at least [3180], which has the necessary hooks for spam filtering to work.

Current state: highly experimental and mostly untested :-P

Suported Filtering Stragies

Regular Expressions

The regex filter reads a list of regular expressions from a wiki page named “BadContent”, each regular expression being on a separate line inside the first code block on the page, using the Python syntax for regular expressions.

If any of those regular expressions matches the submitted content, the submission will be rejected.

IP Blacklisting

The ip_blacklist filter uses the third-party Python library dnspython to make DNS requests to a configurable list of IP blacklist servers.

Akismet

The akismet filter uses the Akismet web service to check content for possible spam. The use of this filter requires a Wordpress API key.

Bayes

TODO

Get the Plugin

The SpamFilter plugin is currently only available through Subversion:

  svn co http://svn.edgewall.com/repos/trac/sandbox/spam-filter

You can browser the source here.

See TracPlugins for instructions on building and installing plugins.


See also: TracPlugins, PluginList

Note: See TracWiki for help on using the wiki.