function _httpbl_banned_check in http:BL 7
Check if IP host is banned in blocked_ips table
2 calls to _httpbl_banned_check()
- _httpbl_cache_set in ./
httpbl.module - Write status value into httpbl cache table ** (add Grey and/or Blacklisted IPs to httpbl table)
- _httpbl_cache_update in ./
httpbl.module
File
- ./
httpbl.module, line 704 - Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.
Code
function _httpbl_banned_check($ip) {
return db_select('blocked_ips', 'banned')
->fields('banned', array(
'ip',
))
->condition('ip', $ip)
->range(0, 1)
->execute()
->fetchField();
}