You are here

function _httpbl_ipdata in http:BL 7

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

Generate a link with Project Honeypot information for a given IP address.

4 calls to _httpbl_ipdata()
httpbl_boot in ./httpbl.module
Implementation of hook_boot()
httpbl_check in ./httpbl.module
Check if an IP should be banned
httpbl_request_whitelist_submit in ./httpbl.module
Grant the session whitelist.
httpbl_request_whitelist_validate in ./httpbl.module
Validate session whitelist request. Ban the user if the 'forbidden' field was filled in.

File

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

Code

function _httpbl_ipdata($ip, $anchor = TRUE) {
  if ($anchor) {
    return '<a href="http://www.projecthoneypot.org/search_ip.php?ip=' . $ip . '">IP data</a>';
  }
  else {
    return 'http://www.projecthoneypot.org/search_ip.php?ip=' . $ip;
  }
}