How accurate is Cloudflare IP Geolocation?


#1

I read this great article which explains how cloudflare makes it easy to get the country code:

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


#2

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.


#3

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