Plugin Author
Thomas
(@tsteur)
Hi @groovice
I’ve created an FAQ describing what needs to be done to fix this issue. Could you let me know if this was helpful or if anything is unclear? https://matomo.org/faq/wordpress/how-do-i-fix-the-proxy-header-warning-in-the-matomo-for-wordpress-system-report/
Thanks,
Thomas
This is as simple as that. and I waste many days to fix this issue and still can’t figure out.
Your guide works perfectly, I just change the IP header to REMOTE_ADDR to HTTP_X_FORWARDED_FOR and the error message gone. as you mentioned in your guide “If multiple options show your IP address, it’s likely to fine to choose any of them.”
View post on imgur.com
………………………….
Yesterday I did something to fix this issue by Restoring the visitor’s real IP addresses ( Cloudflare ).
I have retrieved the visitor’s originating IP address in the HTTP header from all Cloudflare’s IP addresses.
I have Added these following lines in my /etc/nginx-rc/main-extra.conf file.
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2c0f:f248::/32;
set_real_ip_from 2a06:98c0::/29;
real_ip_header X-Forwarded-For;
after that, the location is working properly.
can you please tell me, I have to delete these lines or not? or are they just fine?
Plugin Author
Thomas
(@tsteur)
Hi @groovice unfortunately I’m not so familiar with nginx so it’s hard to tell for me but if you didn’t need this before, I would remove them again.
thank you, Thomas, for your help. now the location is working perfectly.
but I find an issue with other devices like ( android, IOS ) devices are not detecting. only windows and mac IPs are detecting. is there any fix for this as well?
I find this on your blog: https://imgur.com/i4jdBbI
can you explain to me a little bit? I am using Cloudflare atm.
Plugin Author
Thomas
(@tsteur)
I haven’t really used Cloudflare before but I’m thinking what needs to be done there is something like this which you find in “Page Rules” in Cloudflare
View post on imgur.com
I can’t promise thought that this fixes the issue.