Function __global->check_rbls
Definitions
sources/antispam.php
- Check RBLs to see if we need to block this user.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $page_level | boolean | No | No | False | N/A | N/A | Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting) |
| $user_ip | ?IP | No | No | Null | N/A | N/A | IP address (null: current user's) |
Preview
Code (PHP)
/**
* Check RBLs to see if we need to block this user.
*
* @param boolean $page_level Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting)
* @param ?IP $user_ip IP address (null: current user's)
*/
function check_rbls(bool $page_level = false, ?string $user_ip = null)
* Check RBLs to see if we need to block this user.
*
* @param boolean $page_level Whether this is a page level check (i.e. we won't consider blocks or approval, just ban setting)
* @param ?IP $user_ip IP address (null: current user's)
*/
function check_rbls(bool $page_level = false, ?string $user_ip = null)
