jbboehr/dnsbl

DNSBL 查询

v0.1.0 2015-01-28 00:38 UTC

This package is auto-updated.

Last update: 2024-09-05 10:07:42 UTC


README

GitHub Build Status

移除了依赖的 PEAR Net_DNSBL 的简化版本。

安装

使用 composer

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

用法

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

许可证

本项目采用 PHP 许可证