array("127.0.0.4"), // CBL is problematic "dnsbl.sorbs.net" => array("127.0.0.10",), // Dynamic IPs only "list.dsbl.org" => array(), "dnsbl.ioerror.us" => array(), ); // Check the blackhole lists $ip = $package['ip']; $find = implode('.', array_reverse(explode('.', $ip))); foreach ($bb2_blackhole_lists as $dnsbl) { $result = gethostbynamel($find . "." . $dnsbl . "."); if (!empty($result)) { // Got a match and it isn't on the exception list $result = @array_diff($result, $bb2_blackhole_exceptions[$dnsbl]); if (!empty($result)) { return '136673cd'; } } } return false; } ?>