Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-08-28 02:27:34 +0400
committermattab <matthieu.aubry@gmail.com>2013-08-28 02:27:34 +0400
commit66435d50cc62d6aee9c3ca1659bb35c8583d4bd6 (patch)
tree9f673eeeced1462fd328084309cd1c747ed86c38 /core
parentfa3ea189ce67b32924be34c976c860c76531eabe (diff)
Adding CloudFlare to list of excluded bots
Diffstat (limited to 'core')
-rw-r--r--core/Tracker/VisitExcluded.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Tracker/VisitExcluded.php b/core/Tracker/VisitExcluded.php
index 3ee3234f48..53cca8f7ab 100644
--- a/core/Tracker/VisitExcluded.php
+++ b/core/Tracker/VisitExcluded.php
@@ -145,6 +145,7 @@ class VisitExcluded
|| strpos($this->userAgent, 'Google Page Speed Insights') !== false // #4049
|| strpos($this->userAgent, 'bingbot') !== false // Bingbot
|| strpos($this->userAgent, 'YottaaMonitor') !== false // Yottaa
+ || strpos($this->userAgent, 'CloudFlare') !== false // CloudFlare-AlwaysOnline
|| IP::isIpInRange($this->ip, $this->getBotIpRanges()));
}