edusalguero / rbl-checker
A PHP library to check IP against SPAM list (DNSRbl by default)
v1.0.0
2017-01-13 19:01 UTC
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-09-28 20:25:27 UTC
README
RBL Checker
Rbl Checker is a simple PHP library to check IP against SPAM list.
The Facade use the DNS Rbl queryfier to check ips. Currently the library provide a list with 29 DNS Rbl hosts.
More info about DNSRBL in Wikipedia
Usage
<?php $configPath = __DIR__.'/config/config.json'; $ip='107.180.4.167'; $checker = \EduSalguero\RblChecker\DnsRblCheckerFacade::create($ip,$configPath); $blacklisted = $checker->blacklisted(); printf('Blacklisted: %s',$blacklisted ? "true" : "false"); if($blacklisted){ echo "\n Blacklisted on: ".$checker->getDNSBLDomainName(); }