Example #1
0
 public static function checkProjectHoneyPot($ip, $key, $minThreatLevel = 10, $dateCutOff = 31)
 {
     $dnsBl = new self($key . '.%s.dnsbl.httpbl.org');
     $result = $dnsBl->checkIp($ip);
     if (!$result) {
         return false;
     }
     return $result[0] == '127' && intval($result[1]) <= $dateCutOff && intval($result[2]) >= $minThreatLevel && intval($result[3]);
 }