Changes between Version 8 and Version 9 of TracCaptchaPlugin
- Timestamp:
- Jan 17, 2016, 2:32:26 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracCaptchaPlugin
v8 v9 7 7 This plugin embeds a captcha in the ticket page in addition to Trac's regular permission checks. Its purpose is to keep spammers out of the Trac environment. 8 8 9 '''Fully functional:''' The popular reCAPTCHA system is supported out of the box. Technically it's a plugin: if you don't like it, you are free to use any other plugin while still leverage the benefits from the general captcha infrastructure. 9 Key features: 10 * '''Fully functional:''' The popular reCAPTCHA system is supported out of the box. Technically it's a plugin: if you don't like it, you are free to use any other plugin while still leverage the benefits from the general captcha infrastructure. 11 * '''Does not annoy users:''' After the user entered the captcha once, (s)he does not have to solve the captcha again for the same ticket when (s)he just clicks 'preview'. Also you can configure to exempt certain users or groups (e.g. 'all authenticated users') from the captchas by using Trac's permission system. 12 * '''Generic Infrastructure:''' !TracCaptcha takes care about embedding a given captcha in the appropriate places, which means that building a different captcha plugin is easy - you just have to build the captcha itself while this code will take care of the Trac integration. 10 13 11 '''Does not annoy users:''' After the user entered the captcha once, he does not have to solve the captcha again for the same ticket when he just clicks 'preview'. Also you can configure exempt certain users or groups (e.g. 'all authenticated users') from the captchas just by using Trac's permission system.14 The code is licensed under the liberal [http://en.wikipedia.org/wiki/MIT_License MIT license], so you can use the API in your own code. 12 15 13 '''Generic Infrastructure:''' !TracCaptcha takes care about embedding a given captcha in the appropriate places which means that building a different captcha plugin is easy - you just have to build the captcha itself while this code will take care of the Trac integration. 14 15 The whole code is licensed under the liberal [http://en.wikipedia.org/wiki/MIT_License MIT license], so you can use the API in your own code without problems. 16 17 == See it in Action 16 == Screenshot 18 17 19 18 [[Image(wiki:TracCaptchaPlugin:captcha_example.png)]] … … 34 33 35 34 Note the dependencies and compatibility: 36 * Python 2.3 -2.7.35 * Python 2.3 - 2.7. 37 36 * [trac: Trac] 0.11, 0.12, 1.0. 38 37 * Optional: [http://www.pycrypto.org PyCrypto] for better security on Python 2.3 and 2.4. … … 40 39 == Configuration 41 40 42 Enable the macro in your `trac.ini` :41 Enable the macro in your `trac.ini` file: 43 42 {{{#!ini 44 43 [components] … … 53 52 }}} 54 53 55 If you want to exempt some users from the captcha, grant them the `CAPTCHA_SKIP` privilege. TICKET_ADMINs and TRAC_ADMINs automatically have this privilege, so they will never see a captcha. Also, a user only needs to solve the captcha once per modification, so you can click 'preview' as often as you like without having to solve the captcha a ll over again.54 If you want to exempt some users from the captcha, grant them the `CAPTCHA_SKIP` privilege. TICKET_ADMINs and TRAC_ADMINs automatically have this privilege, so they will never see a captcha. Also, a user only needs to solve the captcha once per modification, so you can click 'preview' as often as you like without having to solve the captcha again. 56 55 57 56 == Author/Contributors