Changes between Version 5 and Version 6 of MathCaptchaPlugin
- Timestamp:
- Nov 11, 2015, 10:08:25 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MathCaptchaPlugin
v5 v6 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = A simple equation solverused as a Captcha3 = A simple equation challenge used as a Captcha 4 4 5 5 == Description … … 9 9 === Version 2.0 10 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.)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 that 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. 12 12 13 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. … … 25 25 26 26 If you have any issues, create a 27 [ http://trac-hacks.org/newticket?component=MathCaptchaPlugin&owner=robmnew ticket].27 [/newticket?component=MathCaptchaPlugin new ticket]. 28 28 29 29 [[TicketQuery(component=MathCaptchaPlugin&group=type,format=progress)]] 30 30 31 == Download 32 33 Download the zipped source from [export:mathcaptchaplugin here]. 34 31 35 == Source 32 36 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 36 37 Download the zipped source from [download:mathcaptchaplugin here]. 37 You can check out MathCaptchaPlugin from [/svn/mathcaptchaplugin here] using Subversion, or [source:mathcaptchaplugin browse the source] with Trac. 38 38 39 39 == Installation 40 40 41 Install by either copying the !MathCaptcha.py file into your {{{/path/to/project/environment/plugins}}} directory, or use 42 {{{ 41 Install by either copying the !MathCaptcha.py file into your {{{/path/to/project/environment/plugins}}} directory, or use the following from within the source directory: 42 {{{#!sh 43 43 python setup.py install 44 44 }}} 45 from within the source directory.46 45 47 Version 2.0 of the plugin creates a new database needed for processing captchas when run using fcgi or mod_python, so you'll have to run 48 {{{ 46 Version 2.0 of the plugin creates a new database needed for processing captchas when run using fcgi or mod_python, so you'll have to run the following before you can use the plugin: 47 {{{#!sh 49 48 trac-admin /path/to/project/environment upgrade 50 49 }}} 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: 50 51 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 52 {{{#!ini 53 53 [components]