function httpbl_se in http:BL 6
Same name and namespace in other branches
- 5 httpbl.module \httpbl_se()
- 6.2 httpbl.module \httpbl_se()
Check if an IP is known to belong to a search engine
Parameters
string $ip:
Return value
bool
File
- ./
httpbl.module, line 470 - Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.
Code
function httpbl_se($ip = NULL) {
if ($response = httpbl_dnslookup($ip)) {
$iplink = _httpbl_ipdata($ip);
return $response['search_engine'] === TRUE;
}
else {
return FALSE;
}
}