Page 1 of 1

Support for http:BL from Project Honeypot

Posted: Tue May 13, 2008 10:57 am
by sonichouse
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

Re: Support for http:BL from Project Honeypot

Posted: Tue May 13, 2008 11:39 am
by garvinhicking
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

Re: Support for http:BL from Project Honeypot

Posted: Tue May 13, 2008 12:25 pm
by sonichouse
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

Posted: Wed May 14, 2008 4:55 am
by gizmola
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.

Re: Support for http:BL from Project Honeypot

Posted: Wed May 14, 2008 5:59 am
by Don Chambers
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!!

Posted: Wed May 14, 2008 10:36 am
by sonichouse
@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)

Posted: Wed May 14, 2008 2:47 pm
by judebert
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!

Posted: Wed May 28, 2008 4:32 pm
by sonichouse
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

Posted: Thu May 29, 2008 10:23 am
by garvinhicking
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

Posted: Thu May 29, 2008 8:09 pm
by sonichouse
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

Posted: Thu May 29, 2008 8:17 pm
by garvinhicking
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