@anonymous-piwik-user opened this Issue on February 9th 2011

When a client with a private IP address logs its visit through a proxy, the private IP address is logged, but not the proxy address that will be much more precious: a visitor log showing an IP address as 192.168.x.x is not very useful...

The attached patch directs Piwik to ignore proxy client IP addresses belonging to private networks, thus replacing them in the log by the true proxy address.

@anonymous-piwik-user commented on February 9th 2011

Attachment: Patch as described. For Piwik 1.1.1.
piwik-1.1.1-rfc1918.patch

@robocoder commented on February 9th 2011 Contributor

You should be defining the proxy_client_headers[and proxy _host_headers to get the desired effect. See config/global.ini.php.

@anonymous-piwik-user commented on February 9th 2011

Not exactly: what you propose is a global filtering on the headers NAME. I want to enable those, but filter on their VALUE: I don't like to see RFC1918 addresses in the visitor log...

@robocoder commented on February 9th 2011 Contributor

You'll be able to do this kind of filtering via #2055. This is now planned for 1.3.

@anonymous-piwik-user commented on February 9th 2011

Thanks for your reply. Will check in 1.3 ... impatiently awaited.

This Issue was closed on February 9th 2011
Powered by GitHub Issue Mirror