Overview
TracRecaptchaPlugin is a Trac plugin that adds a CAPTCHA (using reCAPTCHA) to ticket forms. This plugin only works in Trac 0.10, as far as I know.
Installation
Installing the plugin
If you're unsure on how to install a Trac plugin, have a read of the Trac Plugins Documentation first.
If you have setuptools installed run:
- easy_install TracRecaptchaPlugin
Otherwise, here is the egg:
Getting Keys
You need to make an account at http://recaptcha.net/ to receive your public and private keys.
Configuration
Once you have it installed you'll need to modify your ticket templates and add your keys to your trac.ini file. In your ticket.cs and newticket.cs files, insert the following code somewhere before your submit buttons:
<?cs var:recaptcha_javascript ?>
Edit your conf/trac.ini file and add these lines, including your public and private reCAPTCHA keys:
[components] recaptcha_plugin.* = enabled [recaptcha] public_key = private_key =
That should be it! Email me if you have problems.