how to detect when user is using mock location chrome browser [duplicate]

纵饮孤独 提交于 2020-01-11 13:40:15

问题


Is there a way to detect when user is mocking his location in chrome browser (mobile and desktop)? Tried googling but i only see how to actually mock and how to detect in native mobile app.


回答1:


Refer to this question to see how to get the client's IP address. Most of the services mentioned in that question will also return the IP address's location, and thus allow you to compare it to the location provided by the geolocation API. If the service does not provide the location, refer to this question to convert the IP address into a location.



来源:https://stackoverflow.com/questions/48085554/how-to-detect-when-user-is-using-mock-location-chrome-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!