How accurate is Cloudflare IP Geolocation?

I read this great article which explains how Cloudflare makes it easy to get the country code:
https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-Cloudflare-IP-Geolocation-do-

The article doesn’t explains the internals of how it works behind the scenes though. I would like to know about how it determines the geolocation of a user & how accurate & reliable it is.

i.e Is there a chance that for a user visiting my website through India can have cf-ipcountry of something other than ‘IN’ ?

Thank you

They use a third party database. I think the database is by IP address. It’s not perfect, but its as close as they can get.

Of course, someone using a VPN to another country won’t have an accurate Country Code.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.