Changes between Version 4 and Version 5 of MathCaptchaPlugin
- Timestamp:
- Apr 9, 2015, 10:32:51 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MathCaptchaPlugin
v4 v5 1 = A simple equation solver used as a CAPTCHA = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = = Description ==3 = A simple equation solver used as a Captcha 4 4 5 This is a small plugin to present an anonymous user with simple math addition problems in order to submit a new ticket or to make edits in the wiki. Currently there is no customization: it presents two integers in the range of 1 - 10 and asks the user to add them together. 5 == Description 6 6 7 == Version 2.0 == 7 This plugin presents an anonymous user with simple math addition problems in order to submit a new ticket or to make edits in the wiki. Currently there is no customization: it presents two integers in the range of 1 - 10 and asks the user to add them together. 8 8 9 I'm starting to see some particular spambots get through the simple captcha, so I'm releasing version 2.0 that includes a slight modification to the format presented to the user. In addition, this version now correctly works with fcgi and mod_python by saving the captcha information in the trac database. (To use mod_python as an example: apache may start many processes where each has its own embedded python interpreter. The particular apache process than displayed the form may not be the same one that processes the form request, so there must be a persistent way to store the solution to the captcha rather than making it easy for spambots by encoding the solution in the web page itself.) 9 === Version 2.0 10 11 I'm starting to see some particular spambots get through the simple captcha, so I'm releasing version 2.0 that includes a slight modification to the format presented to the user. In addition, this version now correctly works with fcgi and mod_python by saving the captcha information in the trac database. (To use mod_python as an example: apache may start many processes where each has its own embedded python interpreter. The particular apache process than displayed the form may not be the same one that processes the form request, so there must be a persistent way to store the solution to the captcha rather than making it easy for spambots by encoding the solution in the web page itself.) 10 12 11 13 I'm also keeping a 30 day record of failed attempts in the same database so you can get an idea of what sort of spambots are trying to get through your defenses. … … 13 15 For the future, would be nice if there were multiple types of math problems presented in a way that wouldn't be easy for a bot to recognize. 14 16 15 == 0.12 Support ==17 === Version 0.12 16 18 17 Thanks to user Srl295, the plugin now supports Trac 0.12. No database upgrade is necessary if migrating from 0.1119 Thanks to user Srl295, the plugin now supports Trac 0.12. No database upgrade is necessary if migrating from 0.11. 18 20 19 20 == Bugs/Feature Requests == 21 == Bugs/Feature Requests 21 22 22 23 Existing bugs and feature requests for MathCaptchaPlugin are … … 26 27 [http://trac-hacks.org/newticket?component=MathCaptchaPlugin&owner=robm new ticket]. 27 28 28 == Download == 29 [[TicketQuery(component=MathCaptchaPlugin&group=type,format=progress)]] 30 31 == Source 32 33 You can check out MathCaptchaPlugin from [http://trac-hacks.org/svn/mathcaptchaplugin here] using Subversion, or [source:mathcaptchaplugin browse the source] with Trac. 34 35 == Download 29 36 30 37 Download the zipped source from [download:mathcaptchaplugin here]. 31 38 32 == Install ==39 == Installation 33 40 34 41 Install by either copying the !MathCaptcha.py file into your {{{/path/to/project/environment/plugins}}} directory, or use … … 42 49 trac-admin /path/to/project/environment upgrade 43 50 }}} 44 before you can use the plugin. Once installed and the environment is upgraded, the plugin must be enabled by adding a line to the ''components'' section in trac.ini:45 {{{ 51 before you can use the plugin. Once installed and the environment is upgraded, the plugin must be enabled by adding a line to the ''components'' section in your `trac.ini` file: 52 {{{#!ini 46 53 [components] 47 54 mathcaptcha.* = enabled 48 55 }}} 49 Finally, give anonymous users any of the following permissions: '''TICKET_CREATE''', '''TICKET_MODIFY''', '''WIKI_CREATE''', or '''WIKI_MODIFY'''. Anonymous users will then be prompted to solve a math problem before being allowed to submit it, while authenticated users will not see the captcha.50 56 51 == Source == 57 Finally, give anonymous users any of the following permissions: 58 * `TICKET_CREATE` 59 * `TICKET_MODIFY` 60 * `WIKI_CREATE` 61 * `WIKI_MODIFY` 52 62 53 You can check out MathCaptchaPlugin from [http://trac-hacks.org/svn/mathcaptchaplugin here] using Subversion, or [source:mathcaptchaplugin browse the source] with Trac.63 Anonymous users will then be prompted to solve a math problem before being allowed to submit it, while authenticated users will not see the captcha. 54 64 55 == Recent Changes ==65 == Recent Changes 56 66 57 67 [[ChangeLog(mathcaptchaplugin, 3)]] 58 68 59 == Author/Contributors ==69 == Author/Contributors 60 70 61 71 '''Author:''' [wiki:robm] [[BR]] 72 '''Maintainer''': [[Maintainer]] [[BR]] 62 73 '''Contributors:'''