Edgewall Software

Changes between Version 14 and Version 15 of SpamFilter


Ignore:
Timestamp:
Nov 1, 2006, 12:06:32 AM (18 years ago)
Author:
Christopher Lenz
Comment:

Add IP throttling strategy

Legend:

Unmodified
Added
Removed
Modified
  • SpamFilter

    v14 v15  
    1717
    1818The [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=== IP Throttling ===
     21
     22The [source:sandbox/spam-filter/tracspamfilter/filters/ip_throttle.py ip_throttle] filter limits the number of posts per hour allowed from a single IP.
     23
     24The maximum number of posts per hour is configured in [wiki:TracIni trac.ini]:
     25
     26{{{
     27[spam-filter]
     28max_posts_by_ip = 5
     29}}}
     30
     31When this limit is exceeded, the filter starts giving submissions negative karma as specified by the `ip_throttle_karma` option.
     32
     33''(since version 0.2)''
    1934
    2035=== Akismet ===
     
    4055=== Bayes ===
    4156
    42 ''TODO'' (The code in svn uses [http://spambayes.org SpamBayes], which is a logical choice.  It would make sense to use a custom tokenizer, however, rather than the email-centric one that is included with [http://spambayes.org SpamBayes].  The bigger issue is that some form of training is required (e.g. the API could be extended so that (optionally) authenticated users (and the other filters) could report contributions as spam (using automatic training to assume that everything else is ham); however, this is a complex change).  An alternative to this would be a script that could be periodically executed that would train all existing contributions as ham, and gather spam from an appropriate source.  If you decide to continue with this in the future, please don't hestiate to ask [mailto:spambayes-dev@python.org spambayes-dev] for help.
     57''TODO''
     58
     59> (The code in svn uses [http://spambayes.org SpamBayes], which is a logical choice.  It would make sense to use a custom tokenizer, however, rather than the email-centric one that is included with [http://spambayes.org SpamBayes].  The bigger issue is that some form of training is required (e.g. the API could be extended so that (optionally) authenticated users (and the other filters) could report contributions as spam (using automatic training to assume that everything else is ham); however, this is a complex change).  An alternative to this would be a script that could be periodically executed that would train all existing contributions as ham, and gather spam from an appropriate source.  If you decide to continue with this in the future, please don't hestiate to ask [mailto:spambayes-dev@python.org spambayes-dev] for help.
    4360
    4461== WebAdmin Integration ==
     
    5875|| Trac                  || Spam Filter ||
    5976|| [milestone:0.10]      || latest ||
    60 || [milestone:0.11]dev   || latest, but using the Genshi version of WebAdmin ||
     77|| [milestone:0.11]dev   || latest ||
    6178
    6279See TracPlugins for instructions on building and installing plugins.