You are here

function _httpbl_iplink in http:BL 5

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

5 calls to _httpbl_iplink()
httpbl_blacklisted in ./httpbl.module
Check if an IP should be banned
httpbl_request_whitelist_submit in ./httpbl.module
httpbl_request_whitelist_validate in ./httpbl.module
httpbl_se in ./httpbl.module
Check if an IP is known to belong to a search engine
_httpbl_check in ./httpbl.module
The actual checking function.

File

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

Code

function _httpbl_iplink($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;
  }
}