WebService::AbuseIPDB::BlacklistMember - Class for one item of the returned blacklist
The blacklist API endpoint is designed to return a list of bad addresses. Each address is represeted by this class.
blacklist
use WebService::AbuseIPDB; my $ipdb = WebService::AbuseIPDB->new (key => 'abc123...'); my $res = $ipdb->blacklist (limit => 5); for my $member ($res->list) { printf "%s has a score of %i\n", $member->ip, $member->score;
Takes one hashref and returns the object from it. Does no validation because it is only called internally.
A getter which returns the ip address as a scalar string.
A getter which returns the abuse confidence score as an integer between 0 and 100 inclusive.
WebService::AbuseIPDB for general use of the client, WebService::AbuseIPDB::BlacklistResponse for the calling code and Version 2 of the AbuseIPDB API for API details/restrictions.
Copyright © 2020 Pete Houston
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991 or at your option any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GNU General Public License is available in the source tree; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
To install WebService::AbuseIPDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::AbuseIPDB
CPAN shell
perl -MCPAN -e shell install WebService::AbuseIPDB
For more information on module installation, please visit the detailed CPAN module installation guide.