Changes between Version 36 and Version 37 of SpamFilter
- Timestamp:
- Dec 18, 2009, 10:54:50 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SpamFilter
v36 v37 10 10 === Regular Expressions === 11 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.12 The [source:plugins/0.11/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 13 14 14 If any of those regular expressions matches the submitted content, the submission will be rejected. … … 16 16 === IP Blacklisting === 17 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.18 The [source:plugins/0.11/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 19 20 20 '''Note:''' For the SpamFilter to detect [http://www.dnspython.org/ dnspython] it needs to be installed via "setuptools". Install "setuptools" based on the [wiki:TracPlugins#Requirements Trac plugin requirements], then you can run "easy_install dnspython" to automatically download and install the package. … … 22 22 === IP Throttling === 23 23 24 The [source: sandbox/spam-filter/tracspamfilter/filters/ip_throttle.py ip_throttle] filter limits the number of posts per hour allowed from a single IP.24 The [source:plugins/0.11/spam-filter/tracspamfilter/filters/ip_throttle.py ip_throttle] filter limits the number of posts per hour allowed from a single IP. 25 25 26 26 The maximum number of posts per hour is configured in [wiki:TracIni trac.ini]: … … 37 37 === Akismet === 38 38 39 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.39 The [source:plugins/0.11/spam-filter/tracspamfilter/filters/akismet.py akismet] filter uses the [http://akismet.com/ Akismet] web service to check content for possible spam. 40 40 41 41 The use of this filter requires a [http://www.wordpress.com Wordpress] API key. The API key is configured in [wiki:TracIni trac.ini] in a separate section: … … 80 80 See TracPlugins for instructions on building and installing plugins. 81 81 82 You can [source: /plugins/0.11/spam-filter browse the source in Trac].82 You can [source:plugins/0.11/spam-filter browse the source in Trac]. 83 83 84 84 Recommended versions: … … 114 114 [[br]]--other anonymous 115 115 116 ''Quite confusing, but the logging facility doesn't log submissions from any user with permission TRAC_ADMIN (see source: /plugins/0.11/spam-filter/tracspamfilter/adapters.py@#L35). So for creating test submissions, the admin mustn't be logged in.''[[br]]--ole Yes, but that's hardly an issue, is it? -- cboos116 ''Quite confusing, but the logging facility doesn't log submissions from any user with permission TRAC_ADMIN (see source:plugins/0.11/spam-filter/tracspamfilter/adapters.py@#L35). So for creating test submissions, the admin mustn't be logged in.''[[br]]--ole Yes, but that's hardly an issue, is it? -- cboos 117 117 118 118 ----