protected function isVisitorIpExcluded()
    {
        $excludedIps = $this->getAttributes('excluded_ips', 'global_excluded_ips');

        if (!empty($excludedIps)) {
            $ip = IP::fromBinaryIP($this->ip);
            if ($ip->isInRanges($excludedIps)) {
                Common::printDebug('Visitor IP ' . $ip->toString() . ' is excluded from being tracked');
                return true;
            }
        }

        return false;
    }
protected function isVisitorIpExcluded()
    {
        $excludedIps = $this->getAttributes('excluded_ips', 'global_excluded_ips');

        if (!empty($excludedIps)) {
            $ip = IP::fromBinaryIP($this->ip);
            if ($ip->isInRanges($excludedIps)) {
                Common::printDebug('Visitor IP ' . $ip->toString() . ' is excluded from being tracked');
                return true;
            }
        }

        return false;
    }
protected function isVisitorIpExcluded ( ) { $ excludedIps = $ this -> getAttributes ( 'excluded_ips' , 'global_excluded_ips' ) ; if ( ! empty ( $ excludedIps ) ) { $ ip = IP :: fromBinaryIP ( $ this -> ip ) ; if ( $ ip -> isInRanges ( $ excludedIps ) ) { Common :: printDebug ( 'Visitor IP ' . $ ip -> toString ( ) . ' is excluded from being tracked' ) ; return true ; } } return false ; }
Checks if the visitor ip is in the excluded list

@return bool
Checks if the visitor ip is in the excluded list