Version 1 (modified by robm, 6 years ago) (diff)

New hack MathCaptchaPlugin, created by robm

A simple equation solver used as a CAPTCHA


This is a small plugin to present an anonymous user with simple math addition problems in order to submit a new ticket. Currently there is no customization: it presents two integers in the range of 1 - 10 and asks the user to add them together.

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.

Bugs/Feature Requests

Existing bugs and feature requests for MathCaptchaPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


You can check out MathCaptchaPlugin from here using Subversion, or browse the source with Trac.


To enable the plugin, add the line:

mathcaptcha.* = enabled

to the components section in trac.ini.

Recent Changes

[8267] by robm on 2010-07-15 17:27:49
Fixed #7155: added patches to support 0.12
[6763] by robm on 2009-10-20 02:13:38

Added IP address banning and statistics display

  • requires a trac-admin PATH upgrade to publish database changes
  • added href /mathcaptcha-attempts to show failed attempts by spambots
  • added href /mathcaptcha-successful to show successful captchas
  • added href /mathcaptcha-clear to clear the captcha database (ordinarily cleared after 30 days)
  • IPs are banned after 4 unsuccessful attempts
  • banned IPs don't even get the trac interface, only a plain "system offline" page
[6159] by robm on 2009-07-07 01:04:25

Released version 2.0


Author: robm