Get user location by IP address [closed]

You need an IP-address-based reverse geocoding API… like the one from ipdata.co. I’m sure there are plenty of options available.

You may want to allow the user to override this, however. For example, they could be on a corporate VPN which makes the IP address look like it’s in a different country.

Leave a Comment