src/Charcoal/App/Middleware/IpMiddleware.php
private function isIpBlacklisted($ip)
    {
        if (empty($this->blacklist)) {
            return false;
        }
        return $this->isIpInRange($ip, $this->blacklist);
    }
private function isIpBlacklisted($ip)
    {
        if (empty($this->blacklist)) {
            return false;
        }
        return $this->isIpInRange($ip, $this->blacklist);
    }
private function isIpBlacklisted ( $ ip ) { if ( empty ( $ this -> blacklist ) ) { return false ; } return $ this -> isIpInRange ( $ ip , $ this -> blacklist ) ; }
Check wether a certain IP is explicitely blacklisted.

If the blacklist is null or empty, then nothing is ever blacklisted (return false).

Note: this method only performs an exact string match on IP address, no IP masking / range features.

@param string $ip The IP address to check against the blacklist.
@return boolean
Check wether a certain IP is explicitely blacklisted .