Support for http:BL from Project Honeypot

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
User avatar
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Support for http:BL from Project Honeypot

Post by sonichouse » Tue May 13, 2008 10:57 am

Would it be possible to either add a new plugin or extend others to include to support for the http://www.projecthoneypot.org/httpbl_api.

The project relies upon a community of people hosting spam traps, and the information gets gathered and you can use the API with a registered key for free.

I used to use this with my previous blog system, and it works very well.

As a newb, I am not sure where to start, but I might try to hack in support if pushed in the correct direction.

/Steve

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Support for http:BL from Project Honeypot

Post by garvinhicking » Tue May 13, 2008 11:39 am

Hi!

That would be possible; i believe the best place for this is the serendipity_event_spamblock_rbl or serendipity_event_spamblock_rblsurbl plugin; I believe this even supports custom other DNSBL lists. Check those two plugins out, they're available through spartacus!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Re: Support for http:BL from Project Honeypot

Post by sonichouse » Tue May 13, 2008 12:25 pm

garvinhicking wrote:Hi!

That would be possible; i believe the best place for this is the serendipity_event_spamblock_rbl or serendipity_event_spamblock_rblsurbl plugin; I believe this even supports custom other DNSBL lists. Check those two plugins out, they're available through spartacus!

HTH,
Garvin

Thanks Garvin,

the RBL one is the closest, but does not have a placeholder for a key which needs to be passed as part of the dns query e.g.
abcdefghijkl.2.1.9.127.dnsbl.httpbl.org
[Access Key] [Octet-Reversed IP] [List-Specific Domain]


I think I could add two config entries, one for the dns address [dnsbl.httpbl.org]
and one for the key [abcdefghijk]

then only if the key is present perform the dns lookup ?

Day 4 of using serendipity, and already wading into code :lol:

/Steve

User avatar
gizmola
Regular
Posts: 37
Joined: Mon Oct 25, 2004 11:54 pm

Post by gizmola » Wed May 14, 2008 4:55 am

I plan to stick this support in myself. If I get things modified to support this, I'll commit the mod, but by no means do I want to discourage you from DIY, as I may get caught up in other things.

User avatar
Don Chambers
Regular
Posts: 3633
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA
Contact:

Re: Support for http:BL from Project Honeypot

Post by Don Chambers » Wed May 14, 2008 5:59 am

sonichouse wrote:Day 4 of using serendipity, and already wading into code :lol: /Steve


Steve-I cannot wait until you are day 30, 60, 90 and beyond!! Welcome to the s9y community and I sincerely look forward to your continued contributions!!! Keep up the good work!!! Hope you and gizmola get this issue resolved in a way that benefits the entire s9y community!!

User avatar
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post by sonichouse » Wed May 14, 2008 10:36 am

@gizmola - I think we also need a value for the score to exceed e.g >=4

@don - Cheers, nice to find a project that is so active (if only by a few committed people)

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert » Wed May 14, 2008 2:47 pm

I just want to second Don's welcome. As a small community, it's hard for us to do everything that everyone wants, so it's especially nice when people want to fix problems and share the results!

I'm confident you'll find the community responsive and friendly. I found the project intriguing enough to hang around for... oh, what? 3 years now?... so I'm sure you'll find something interesting to look at, too. And of course, we're always happy to help you out with any questions you may have.

Welcome to s9y!
Judebert
---
Website | Wishlist | PayPal

User avatar
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post by sonichouse » Wed May 28, 2008 4:32 pm

I have written my first attempt at the plugin.

It can be downloaded from my blog.

As my language skills are non-existent I have only shipped the EN language resource file.

As I say, any feedback is appreciated, as I have more than likely missed something.

Regards,
Steve
Steve is occasionally blogging here

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Thu May 29, 2008 10:23 am

Hi!

The code looks good! Any chance you could implement this into the existing DNSBL-Spamblock plugin?

It seems as if the code already share some common code with the DNSBL one, and I'd really rather have larger plugins that deal with the same aspect (DNSBL) rather than many tiny ones?

Best regards and thanks for your contribution,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post by sonichouse » Thu May 29, 2008 8:09 pm

garvinhicking wrote:Hi!

The code looks good! Any chance you could implement this into the existing DNSBL-Spamblock plugin?

It seems as if the code already share some common code with the DNSBL one, and I'd really rather have larger plugins that deal with the same aspect (DNSBL) rather than many tiny ones?

Best regards and thanks for your contribution,
Garvin
I have merged this into the Spam(RBL) plugin.
Having just reread your post I wonder if it is the correct one ?

The changed files are updated on my blog.

/Steve
Steve is occasionally blogging here

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Thu May 29, 2008 8:17 pm

Hi!

Perfect! I've just committed your patch to the official CVS.

I noticed that the line indents diverge from our default of 4 spaces (no tabs), but I'm out of time to fix that right now. I'll try to update that in the next days, or if someone else wants to prettify it...have a go ;)

Many thanks,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply