I need to get the city the user is at the moment of access to the Site Control Panel.
Why do I need this?
I want to block access to the control panel only for my client's city, when it does not have fixed , if it does, I block access only to its fixed IP.
I have already tested for GEOIP , but it gives me a very large distance, for example:
I put my IP and he showed me a city more than 50 km from where I am.
Does anyone know how to do this?