简体   繁体   English

检测客户端是否在ASP.NET(MVC)中使用VPN连接

[英]Detect if client uses a VPN connection in ASP.NET (MVC)

Is there a way to detect if the client is using a VPN connection? 有没有办法检测客户端是否使用VPN连接? I know that you can detect if he's using a proxy by using 我知道你可以通过使用来检测他是否正在使用代理

GlobalProxySelection.Select

or 要么

WebRequest.DefaultWebProxy

But those don't detect VPN. 但那些没有检测到VPN。 I'm building a website that uses geolocation and when clients uses VPN or Proxy I want to show a highlighted text saying that their location might not be correct because they're using any of those things. 我正在建立一个使用地理定位的网站,当客户使用VPN或代理时,我想要显示一个突出显示的文本,说明他们的位置可能不正确,因为他们正在使用任何这些东西。

If you have knowledge of the pool of IP addresses assigned to the VPN(s) you could monitor for those specific entries: 如果您了解分配给VPN的IP地址池,则可以监视这些特定条目:

http://forums.asp.net/p/1356084/2782293.aspx http://forums.asp.net/p/1356084/2782293.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM