piwik/core/Tracker/VisitExcluded.php
/**
     * Checks if the visitor ip is in the excluded list
     *
     * @return bool
     */
Checks if the visitor ip is in the excluded list
@return bool
Checks if the visitor ip is in the excluded list @return bool
protected function isVisitorIpExcluded()
    {
        $websiteAttributes = Cache::getCacheWebsiteAttributes($this->idSite);
        if (!empty($websiteAttributes['excluded_ips'])) {
            $ip = IP::fromBinaryIP($this->ip);
            if ($ip->isInRanges($websiteAttributes['excluded_ips'])) {
                Common::printDebug('Visitor IP ' . $ip->toString() . ' is excluded from being tracked');
                return true;
            }
        }
        return false;
    }
protected function isVisitorIpExcluded ( ) { $ websiteAttributes = Cache :: getCacheWebsiteAttributes ( $ this -> idSite ) ; if ( ! empty ( $ websiteAttributes [ 'excluded_ips' ] ) ) { $ ip = IP :: fromBinaryIP ( $ this -> ip ) ; if ( $ ip -> isInRanges ( $ websiteAttributes [ 'excluded_ips' ] ) ) { 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 @return bool