NAME
Net::Google::SafeBrowsing::Blocklist - Query a Google SafeBrowsing table
SYNOPSIS
my $blocklist = Net::Google::SafeBrowsing::Blocklist->new(
$tablename, $dbfile, $apikey);
my $matched_uri = $blocklist->suffix_prefix_match($uri);
if (defined($matched_uri)) {
print "Matched '$matched_uri'\n";
} else {
print "No match for '$uri'\n";
}
$blocklist->close;
DESCRIPTION
The Blocklist module performs lookups in the Google SafeBrowsing URI tables. The $tablename, $dbfile, and $apikey arguments to the constructor should correspond to the arguments given to the blocklist_updater script.