Function __global->rbl_resolve

Definitions

sources/antispam.php

  • Do an RBL lookup (low level, uninterpreted).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ip IP No No required parameter N/A N/A The IP address to lookup
$rbl_domain ID_TEXT No No required parameter N/A N/A The RBL domain
$page_level boolean No No required parameter N/A N/A Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting)

Returns

  • Return result (null: error)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Do an RBL lookup (low level, uninterpreted).
 *
 * @param  IP $ip The IP address to lookup
 * @param  ID_TEXT $rbl_domain The RBL domain
 * @param  boolean $page_level Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting)
 * @return ?array Return result (null: error)
 */

function rbl_resolve(string $ip, string $rbl_domain, bool $page_level) : ?array