1 [Project Honeypot](http://projecthoneypot.org/) has an HTTP:BL API available to subscribed (it's free, accept donations) people/orgs. There's a basic perl package someone wrote, I'm including a copy here.
3 [from here](http://projecthoneypot.org/board/read.php?f=10&i=112&t=112)
8 use Socket qw/inet_ntoa/;
10 my $dns = 'dnsbl.httpbl.org';
15 4 => 'Comment Spammer'
18 my $key = shift || die 'You need a key for this, you get one at http://www.projecthoneypot.org';
19 my $ip = shift || do {
20 warn 'no IP for request in Honeypot::query().';
24 my @parts = reverse split /\./, $ip;
25 my $lookup_name = join'.', $key, @parts, $dns;
27 my $answer = gethostbyname ($lookup_name);
28 return unless $answer;
29 $answer = inet_ntoa($answer);
30 my(undef, $days, $threat, $type) = split /\./, $answer;
32 while(my($bit, $typename) = each %types) {
33 push @types, $typename if $bit & $type;
38 type => join ',', @types
47 > The usage is simple:
50 > my $key = 'XXXXXXX'; # your key
51 > my $ip = '....'; the IP you want to check
52 > my $q = Honeypot::query($key, $ip);
57 Any chance of having this as a plugin?
59 I could give it a go, too. Would be fun to try my hand at Perl. --[[simonraven]]