NAME
WebService::Livedoor::SpamChampuru::DNSBL - Perl interface of SpamChampuru DNSBL WebService
DESCRIPTION
Checks if an IP has recently been used for sending spams, via spam-champuru (spam-champloo) DNSBL service (beta).
Spam-champuru DNSBL holds list of IPs which have been reported as sources of spams by various services running at livedoor.com.
The result may not be suitable for filtering mails, as this service is mainly intended for checking blog comments/trackbacks or bbs posts.
* livedoor.com is not responsible for appropriateness of the result, nor for any harms caused by the use of the result.
* The service is in a beta status, and may at any time become unavailable.
VERSION
Version 0.02
SYNOPSIS
use WebService::Livedoor::SpamChampuru::DNSBL;
my $dnsbl = WebService::Livedoor::SpamChampuru::DNSBL->new(timeout => 1);
my $res = $dnsbl->lookup($ip_addr);
METHODS
new
Creates an WebService::Livedoor::SpamChampuru::DNSBL instance.
$dnsbl = WebService::Livedoor::SpamChampuru::DNSBL->new(timeout => $timeout, [nameservers => \@nameservers]);
lookup
Sends a DNS query to SpamChampuru DNSBL server and checks if $ip_addr is classified as a source of spam. lookup
returns 1 for SPAM, 0 for HAM.
my $res = $dnsbl->lookup($ip_addr);
lookup('192.0.2.1') should always return 1 (spam), as SpamChampuru DNSBL uses this IP as a test IP.
AUTHOR
Kensuke Kaneko, <k-kaneko at livedoor.jp>
SEE ALSO
http://spam-champuru.livedoor.com/dnsbl/ (Japanese text only)
COPYRIGHT & LICENSE
Copyright 2008 livedoor Co., Ltd., all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.