You are here

function _httpbl_whitelisted in http:BL 7

Same name and namespace in other branches
  1. 5 httpbl.module \_httpbl_whitelisted()
  2. 6.2 httpbl.module \_httpbl_whitelisted()
  3. 6 httpbl.module \_httpbl_whitelisted()

Check if an IP is whitelisted through a session whitelist.

1 call to _httpbl_whitelisted()
httpbl_check in ./httpbl.module
Check if an IP should be banned

File

./httpbl.module, line 603
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function _httpbl_whitelisted($ip) {
  return isset($_SESSION['httpbl_status']) && $_SESSION['httpbl_status'] == 'white';
}