Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3487 closed enhancement (worksforme)

RBL support for trac~0.9.6

Reported by: mark@… 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)

trac-0.9.6-rbl.patch (2.3 KB ) - added by mark@… 18 years ago.
RBL support in trac
IsIPBlacklisted.py (179 bytes ) - added by mark@… 18 years ago.
wiki-macro for testing RBL functionality

Download all attachments as: .zip

Change History (5)

by mark@…, 18 years ago

Attachment: trac-0.9.6-rbl.patch added

RBL support in trac

by mark@…, 18 years ago

Attachment: IsIPBlacklisted.py added

wiki-macro for testing RBL functionality

comment:1 by mark@…, 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 Matthew Good, 18 years ago

Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.