Ways we can search for the user's location #937
DIEGOHORVATTI
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I’ve been reflecting on how companies like Meta are able to obtain user location information without requiring permission to activate the location feature. The answer seems simple: they probably use HTTP headers.
It turns out that in order to determine a user's precise location, such as city or geographical coordinates, the browser's location feature would need to be enabled. Without this, it’s impossible to get the exact position of the user. However, there is a fairly common alternative: the use of the IP address.
By making a request to services like ipstack (or other IP geolocation services), it’s possible to obtain approximate information about the user's location, such as city, country, and even the internet service provider, without needing explicit permission to access their location.
Therefore, while the accuracy is not the same as GPS, IP-based geolocation is still an effective solution for determining a user’s approximate location in many cases.
But I can't access the IP using elysia no matter what I do, does anyone have any idea what to do, I've even tried using that elysia-ip plugin
Beta Was this translation helpful? Give feedback.
All reactions