7 | | Check it out [source:sandbox/spam-filter here]. |
| 8 | == Suported Filtering Stragies == |
| 9 | |
| 10 | === Regular Expressions === |
| 11 | |
| 12 | The [source:sandbox/spam-filter/tracspamfilter/filters/regex.py 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 [http://docs.python.org/lib/re-syntax.html Python syntax] for regular expressions. |
| 13 | |
| 14 | If any of those regular expressions matches the submitted content, the submission will be rejected. |
| 15 | |
| 16 | === IP Blacklisting === |
| 17 | |
| 18 | The [source:sandbox/spam-filter/tracspamfilter/filters/ip_blacklist.py ip_blacklist] filter uses the third-party Python library [http://www.dnspython.org/ dnspython] to make DNS requests to a configurable list of IP blacklist servers. |
| 19 | |
| 20 | === Akismet === |
| 21 | |
| 22 | The [source:sandbox/spam-filter/tracspamfilter/filters/akismet.py akismet] filter uses the [http://akismet.com/ Akismet] web service to check content for possible spam. The use of this filter requires a [http://www.wordpress.com Wordpress] API key. |
| 23 | |
| 24 | === Bayes === |
| 25 | |
| 26 | ''TODO'' |
| 27 | |
| 28 | == Get the Plugin == |
| 29 | |
| 30 | The SpamFilter plugin is currently only available through Subversion: |
| 31 | {{{ |
| 32 | svn co http://svn.edgewall.com/repos/trac/sandbox/spam-filter |
| 33 | }}} |
| 34 | |
| 35 | You can browser the source [source:sandbox/spam-filter here]. |
| 36 | |
| 37 | See TracPlugins for instructions on building and installing plugins. |
| 38 | |
| 39 | ---- |
| 40 | See also: TracPlugins, PluginList |