Skip to content

RblChecker is a simple PHP library to check IP against SPAM list

License

Notifications You must be signed in to change notification settings

edusalguero/rbl-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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();
}

About

RblChecker is a simple PHP library to check IP against SPAM list

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages