Piwik\Tracker\VisitExcluded::isVisitorIpExcluded PHP 메소드

isVisitorIpExcluded() 보호된 메소드

Checks if the visitor ip is in the excluded list
protected isVisitorIpExcluded ( ) : boolean
리턴 boolean
    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;
    }