Version 5 (modified by wmark, 10 years ago) (diff)

how to specify whitelists

RBL support for Trac < 0.10


This patch implements real-time spam black lists (RBL) support for early releases of Trac, which do not have the SpamPlugin support.

It is written for Trac 0.9.6 but should apply to the 0.9 series seamlessly.
In case you do not use mod_python you will have to modify your controller very similiarly to Controllers are stored in trac/web.

Any user who did not log in (thus anonymous) and whose IP is on the given RBL will have his rights to modify anything revoked.

Bugs/Feature Requests

Existing bugs and feature requests for TracRblPatch are here.

If you have any issues, create a new ticket.

If you have an idea how to obtain the remote IP address or req more elegantly, send me an email (wmark AT hurrikane DOT de)!


Download the zipped source from [download:tracrblpatch here].


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


It is inactive as long as you don't provide any RBLs in conf/trac.ini:

rbl =,
rbl_whitelist =


You can check out whether your RBLs are working correctly by the wiki-macro

For selecting RBLs I recommend

Recent Changes

1248 by wmark on 2006-09-05 14:28:41

Do accept other (common) blacklistings than

1247 by wmark on 2006-09-05 14:26:11

Whitelisting of IPs from being checked against RBL was implemented.

1246 by wmark on 2006-09-05 14:25:04


  • fixed: typo


Author: wmark