如何检测用户何时使用模拟位置Chrome浏览器 [英] how to detect when user is using mock location chrome browser

查看:108
本文介绍了如何检测用户何时使用模拟位置Chrome浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以检测用户何时在chrome浏览器(移动设备和台式机)中嘲笑自己的位置? 尝试使用谷歌搜索,但我只看到如何进行实际模拟以及如何在本机移动应用程序中进行检测.

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.

推荐答案

请参阅此问题以转换IP地址到一个位置.

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.

这篇关于如何检测用户何时使用模拟位置Chrome浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆