Skip to content

mhoffmann/phpdnsrbl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnsrbl

Simple DNSRBL lookup forked from jbboehr/dnsbl.php

Installation

With composer

{
    "require": {
        "mhoffmann/dnsrbl": "0.1.*"
    }
}

Usage

$rbl = new DNSRBL(
    array(
        'dnsbl' => array(
            'sbl.spamhaus.org'
        ),
        'surbl' => array(
            'dbl.spamhaus.org'
        )
    )
);

//checks the surbl
var_export($rbl->isListed('dbltest.com')); echo ";\n";

//checks the dnsbl
var_export($rbl->getListingBlacklists('127.0.0.2')); echo ";\n";
true;
array (
  0 => 'sbl.spamhaus.org',
);

License

This project is licensed under the PHP license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages