Plugin Support
Mehmet
(@gandomi)
Hi @martinm76,
Thanks a lot for bringing this up!
I’ve actually checked this with Cloudflare, and it seems everything is working fine on our side. I’m currently seeing visitors with different IPs as expected.
Could you please double-check the following setting on your site just to make sure it’s correctly configured?
Statistics > Settings > Advanced Options > Location Detection Method
Make sure it’s set to Cloudflare IP Geolocation.
Best regards,
Mehmet
Hi Mehmet. I had some trouble finding it initially, but it turns out it’s called “Main IP Detection Method” in my WordPress setup. It was defaulting to REMOTE_ADDR, but there was a note about the Cloudflare thing, and I have set that now.
It’s fairly recent that I put my sites behind CloudFlare so fair it couldn’t necessarily detect it upon install, but as it is able to fetch the headers and show them, perhaps it could present a dialog, if it notices this header and this option has not already been changed so the administrator of the site can get up to speed that much quicker?
Thanks for the tip!
Plugin Support
Mehmet
(@gandomi)
Hi @martinm76,
That’s a great suggestion thank you for sharing it!
You’re absolutely right, it would make sense for the plugin to automatically detect the presence of the CF-Connecting-IP header and prompt the administrator to switch to the correct IP detection method. This would help prevent confusion for users who recently moved their sites behind Cloudflare.
Appreciate your thoughtful feedback and for taking the time to follow up!
Best,
Mehmet