HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
前端如何判断用户使用网络是内网还是外网?
最近收到一条需求,用户在内网登录的时候展示一个功能,用户在外网的情况下是禁止使用这种功能!使用vpn的情况 也算内网,有没有有经验的朋友!
HD Superman
·
3 years ago
Across the Great Wall, we can reach every corner in the world.
这是做不到的,浏览器安全机制,你没办法知道具体网络情况
Reply
Report
HD Superman
Joined 3 years ago
Across the Great Wall, we can reach every corner in the world.
github.com/hdsuperman
Follow
Message