douhong6187 2016-01-08 00:30
浏览 116

如何确定访问您网站的移动用户是否在其移动网络上,而不是连接到WiFi

We built a site that obtains your location (when connected to wifi, getting the local router) and shows you things in your area. But if you are on your cellular network, it is going to display the wrong things because the cellular network router could be hundreds/thousands of miles away.

Is there a way to determine if a user is on their cellular network by http request? The only thing we have come up with so far is to build a list of the most common cellular network routers around the U.S. and void those areas completely - not very efficient. Thanks in advance!

  • 写回答

1条回答 默认 最新

  • dounei5721 2016-01-08 00:47
    关注

    You may be able to check latency somehow, and may see a big difference for cellular networks when you test it.

    That said, the most reliable way would be to ask the user directly, and let them put in where they really are if the detected location isn't accurate. It would be also useful to do that in general, to see things in another area that someone is planning to go to in the future.

    评论

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)