|Version 2 (modified by wmark, 9 years ago) (diff)|
RBL support for Trac < 0.10
This patch implements RBL support for early releases of Trac, which do not have the SpamPlugin support implemented.
It is written for Trac 0.9.6 but should apply to the 0.9 series seamlessly.
In ccase you do not use mod_python you will have to modify your controller very similiarly. 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.
If you have any issues, create a new ticket.
If you have an idea how to obtain the remote IP address more elegantly, send me an email!
Download the zipped source from here.
It is inactive as long as you don't provide any RBLs in conf/trac.ini:
[trac] rbl = sbl-xbl.spamhaus.org,cbl.abuseat.org
For selecting RBLs I recommend http://www.robtex.com/rbls/.