ipCheckBan (function)

Last updated: Mon, Apr 17, 2023 10:52 am
Return to Knowledgebase

Purpose

Checks if the user's IP address is on the blacklist and not on the whitelist.

Location

users/helpers/us_helpers.php

Parameters

This function does not take any arguments

Returns

Data Type Description of Returned Data
bool If it is on the blacklist and not on the whitelist, the function logs the attempt and returns true. Otherwise, it returns false.

Further Documentation:

The ipCheckBan function checks if the user's IP address is on the blacklist and not on the whitelist. If it is on the blacklist and not on the whitelist, the function logs the attempt and returns true. Otherwise, it returns false.

Example usage:

if (ipCheckBan()) {
// do something if the IP is on the blacklist and not on the whitelist
} else {
// do something if the IP is not on the blacklist or is on the whitelist
}