Skip to content

mhoffmann/dnsbl.php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnsbl.php

Build Status HHVM Status

Simplified version of PEAR's Net_DNSBL with PEAR dependencies removed.

Installation

With composer

{
    "require": {
        "jbboehr/dnsbl": "0.1.*"
    }
}

Usage

$dnsbl = new \DNSBL\DNSBL(array(
    'blacklists' => array(
        'bl.spamcop.net'
    )
));
var_export($dnsbl->isListed('127.0.0.2')); echo ";\n";
var_export($dnsbl->getListingBlacklists('127.0.0.2')); echo ";\n";
true;
array (
  0 => 'bl.spamcop.net',
);

License

This project is licensed under the PHP license.

About

DNSBL Lookup

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%