PHP code example of edusalguero / rbl-checker
1. Go to this page and download the library: Download edusalguero/rbl-checker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
edusalguero / rbl-checker example snippets
$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();