I have the latest Piwik 2.4.1 fresh installed onto a distant server running PHP 5.5.14.
It has only 2 trusted hosts (as seen in config.ini.php) :
The problem is the following :
In the "Pages" widget, they are tracked under the following label : "Page URL not defined"
I had the same problem with Piwik 2.3.0
My test code that triggers serverside Piwik when runned from c:/test.htm into the browser
in global.ini .php, enable_trusted_host_check = 1 (and not commented)
Configuration : Windows 7 64 bits, Firefox 30.0, PHP 5.5.14
the trusted host setting only limits access to the dashboard and does not restrict tracking. Restricting tracking would be ineffective and can easily be circumvented by forging tracking requests.
Closing as this is not a bug.
What are you saying ? Of course it's not a bug, it's just a huge security hole ! How can you close this so quickly ?
Talking about trusted hosts just to close this is.... but what ? It's just a part of the problem.
Please let's study this issue or forward it.
May I put this public to have a solution ? Who will trust a solution that can be flood by anyone so easily ?
It will also be fixed by default for all users in https://github.com/matomo-org/matomo/issues/17017