I am using cf-iplatitude and cf-iplongitude.
And I keep guessing what exactly I should when I receive
cf-iplatitude 37.75100
cf-iplongitude -97.82200
cf-ipcountry US
And I cannot find an answer for long period of time.
I think probably it is when geo database fails to give valid result.
Because when I tried to take IP address and check with node geoip-lite, I get no lat/long and I get country CA.
In my case I am trying to block non US traffic.
Do you think it is good idea to block based on those coordinates?
In my case I get country US, but I get strange coordinates cf-iplatitude 37.75100 cf-iplongitude -97.82200.
And it is not only one IP address, I get many of IP addresses with cf-iplatitude 37.75100
cf-iplongitude -97.82200 coordinates.
When I tried to check one of those IP address with node geoip-lite, I’ve got country CA, what is not US at all.
I am just trying to undestand first of all what it is.
Cloudflare uses a 3rd party to determine user origin. It may not match to your 3rd party provider. IP addresses are ephemeral at best. Restricting access by geo-region is a guess. Is Cloudflare wrong? Is Google wrong? Yes!