mhoffmann/phpdnsrbl

简单的 DNSRBL 查询

0.1.1 2017-05-19 03:13 UTC

This package is not auto-updated.

Last update: 2024-09-29 01:48:13 UTC


README

从 jbboehr/dnsbl.php 分支出来的简单的 DNSRBL 查询

安装

使用 composer

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

使用方法

$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',
);

许可证

本项目遵循 PHP 许可证