Changes between Version 49 and Version 50 of SpamFilter
- Timestamp:
- Dec 4, 2010, 11:02:27 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SpamFilter
v49 v50 2 2 [[PageOutline(2-3)]] 3 3 4 This plugin allows different ways to reject contributions that contain spam. This plugin requires Trac release [milestone:0.1 1] or [milestone:0.12].4 This plugin allows different ways to reject contributions that contain spam. This plugin requires Trac release [milestone:0.12]. The plugin code for versions before 0.12 aren't updated any more. 5 5 6 6 The spamfilter plugin has many options, but most of them are optional. Basically installing is enough to have a basic spam protection. But there are some things which may be helpful (in order of importance): … … 8 8 * Setup !BadContent page containing regular expressions to filter 9 9 * Get API keys for Akismet, !TypePad and/or HTTP:BL to use external services 10 * Activate captcha rejection handler to improve user treatment 11 * finetune the karma settings and parameters for your system (e.g. you may increase karma for good trained bayes filters or stop trusting registered users) 10 * Activate captcha rejection handler to improve user treatment (may nee reCAPTCHA access when that method should be used) 11 * Finetune the karma settings and parameters for your system (e.g. you may increase karma for good trained bayes filters or stop trusting registered users) 12 13 14 WebAdmin is used for configuration, monitoring, and training. For monitoring and training purposes, it optionally logs all activity to a table in the database. Upgrading the environment is necessary to install the database table required for this logging. 12 15 13 16 == Supported Filtering Strategies == … … 40 43 === Akismet === 41 44 42 The [source:plugins/0.12/spam-filter-captcha/tracspamfilter/filters/akismet.py akismet] filter uses the [http://akismet.com/ Akismet] web service to check content for possible spam.45 The [source:plugins/0.12/spam-filter-captcha/tracspamfilter/filters/akismet.py Akismet] filter uses the [http://akismet.com/ Akismet] web service to check content for possible spam. 43 46 44 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: 45 46 {{{ 47 [spam-filter] 48 akismet_api_key = 1234567890 49 }}} 47 The use of this filter requires a [http://www.wordpress.com Wordpress] API key. The API key is configured in the 'External' administration page. 50 48 51 49 === !TypePad === … … 53 51 The [source:plugins/0.12/spam-filter-captcha/tracspamfilter/filters/typepad.py TypePad AntiSpam] filter uses the [http://antispam.typepad.com/ Typepad] web service to check content for possible spam. 54 52 55 The use of this filter requires a API key. The API key is configured in [wiki:TracIni trac.ini] in a separate section: 56 57 {{{ 58 [spam-filter] 59 typepad_api_key = 1234567890 60 }}} 53 The use of this filter requires a API key. The API key is configured in the 'External' administration page. 61 54 62 55 === HTTP:BL === … … 64 57 The [source:plugins/0.12/spam-filter-captcha/tracspamfilter/filters/httpbl.py HTTP:BL] filter uses the [http://www.projecthoneypot.org/httpbl.php Project HoneyPot HTTP:BL] web service to check content for possible spam. 65 58 66 The use of this filter requires a [http://www.projecthoneypot.org/httpbl_configure.php HTTP:BL] API key. The API key is configured in [wiki:TracIni trac.ini] in a separate section: 67 68 {{{ 69 [spam-filter] 70 httpbl_api_key = abcdefghijkl 71 }}} 59 The use of this filter requires a [http://www.projecthoneypot.org/httpbl_configure.php HTTP:BL] API key. The API key is configured in the 'External' administration page. 72 60 73 61 === Captcha === 74 62 75 S ince version 0.3.1 the support to have CAPTCHA-style "human" verification has been integrated.63 Support to have CAPTCHA-style "human" verification is integrated. Captcha usage is configured in the 'Captcha' administration page. 76 64 77 Note that you need to add the following to your [TracIni trac.ini]: 78 {{{ 79 [spam-filter] 80 ... 81 reject_handler = CaptchaSystem 82 # captcha = ExpressionCaptcha 83 # (default, doesn't need to be specified explicitly) 84 # captcha = ImageCaptcha 85 # (needs to be activated and needs PIL to be installed) 86 # captcha = RecaptchaCaptcha 87 # (uses Googles reCAPTCHA service) 88 # captcha = RandomCaptcha 89 # (chooses one of the others randomly) 90 }}} 91 To use RecaptchaCaptcha, you'll need to sign up at http://www.google.com/recaptcha/whyrecaptcha and set 92 {{{ 93 captcha_recaptcha_public_key= .. 94 captcha_recaptcha_private_key= .. 95 }}} 65 To use reCAPTCHA captcha method, you'll need to sign up at [http://www.google.com/recaptcha/whyrecaptcha] and set the keys at 'Captcha' administration page. 96 66 97 67 === Bayes === … … 100 70 101 71 > (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. 102 103 == WebAdmin Integration ==104 105 The SpamFilter plugin provides integration with WebAdmin for configuration, monitoring, and training. For monitoring and training purposes, it optionally logs all activity to a table in the database. Upgrading the environment is necessary to install the database table required for this logging.106 72 107 73 == Get the Plugin == … … 123 89 You can [source:plugins/0.12/spam-filter-captcha browse the source in Trac]. 124 90 125 Recommended versions:126 || Trac || Spam Filter ||127 || [milestone:0.11] || latest (in 0.12 tree)||128 || [milestone:0.12] || latest ||129 130 91 ''[http://svn.edgewall.com/repos/trac/plugins/0.12/spam-filter-captcha/#egg=TracSpamFilter-dev This is a link for setuptools to find the SVN download]'' 131 92 132 93 == Enabling the Plugin == 133 94 134 If you install the plugin globally (as described [wiki:TracPlugins#ForAllProjects here]), you'll also need to enable it in [wiki:TracIni trac.ini] as follows:95 If you install the plugin globally (as described [wiki:TracPlugins#ForAllProjects here]), you'll also need to enable it in the web administration or in [wiki:TracIni trac.ini] as follows: 135 96 {{{ 136 97 [components] … … 153 114 * '''Attention''': The 1.7 series of dnspython causes a massive slowdown of whole Trac. Use 1.6.x or 1.8.x. 154 115 * The !ImageCaptcha requires python-imaging to work. 155 156 == Comments == 116 * Bayes filtering needs spambayes software installed. 157 117 158 118 ----