#3487 closed enhancement (worksforme)
RBL support for trac~0.9.6
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.9.6 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I'd like to share my RBL implementation for trac~0.9.6. See the attached patch.
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
Unfortunately I don't know how to obtain req
or the remote IP of current client in trac. Therefore I have had to hack modpython_frontend.py
to store this value in os.environ['REMOTE_IP']
. Corrections are welcome.
Attachments (2)
Change History (5)
by , 18 years ago
Attachment: | trac-0.9.6-rbl.patch added |
---|
comment:1 by , 18 years ago
With the supplied macro you can test whether your RBL settings are right.
Just provide an IP as first and only parameter, i.e.: [[IsIPBlacklisted(127.0.0.2)]]
You can test independently the IP at http://www.robtex.com/rbls/.
comment:2 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Thanks for the patch, but IP blacklisting is already implemented in the SpamFilter plugin: SpamFilter#IPBlacklisting
If you'd like you can share your changes for Trac 0.9.6 on the MailingList.
RBL support in trac