Ejemplo n.º 1
0
 /**
  * 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'])) {
         if (IP::isIpInRange($this->ip, $websiteAttributes['excluded_ips'])) {
             Common::printDebug('Visitor IP ' . IP::N2P($this->ip) . ' is excluded from being tracked');
             return true;
         }
     }
     return false;
 }