You are here

function _httpbl_ipdata in http:BL 6

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

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

5 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 one of the 'forbidden' fields were filled.
httpbl_se in ./httpbl.module
Check if an IP is known to belong to a search engine

File

./httpbl.module, line 688
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;
  }
}