diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-06-15 19:08:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 19:08:55 +0300 |
commit | f839cb921ff056bc107a5306cfe254dca1684d82 (patch) | |
tree | 6ffa62bbba80f7ff6e446ca36c66000251a41e2d /config | |
parent | 1a547d8a90a5971e718e97967f5a482df2a541bb (diff) |
Improvements to site type detection (added Drupal and WebFlow) (#17671)
* Do not send any requests to localhost or any IP in order to determine the site type
* Adds integration detection for Drupal and Webflow
* Make it possible to disallow Http class requests to certain hosts
* log info
Diffstat (limited to 'config')
-rw-r--r-- | config/global.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/global.php b/config/global.php index 3d3f9c195f..14fb7b50aa 100644 --- a/config/global.php +++ b/config/global.php @@ -175,6 +175,14 @@ return array( return $ipsResolved; }, + /** + * This defines a list of hostnames Matomo's Http class will deny requests to. Wildcards (*) can be used in the + * beginning to match any subdomain level or in the end to match any tlds + */ + 'http.blocklist.hosts' => DI\add([ + '*.amazonaws.com' + ]), + 'Piwik\Tracker\VisitorRecognizer' => DI\autowire() ->constructorParameter('trustCookiesOnly', DI\get('ini.Tracker.trust_visitors_cookies')) ->constructorParameter('visitStandardLength', DI\get('ini.Tracker.visit_standard_length')) |