0

我制作了一个网吧应用程序,其中互联网连接是一个至关重要的问题。我想禁用互联网连接,直到任何用户登录我的应用程序。

首先,任务是通过禁用代理服务器来完成的。但这对我来说不是一个完美的解决方案,因为我的用户使用 Mozilla Firefox,这有助于一些网络设置,例如不使用代理使用系统代理自动检测代理手动配置代理。因此,当用户将这些设置从system proxy更改为no proxy时,我的应用程序无法阻止它们浏览。

请给我一些例子。我使用 C#、WPF、SQL server 2008 制作了这个应用程序。

4

1 回答 1

1

To be reasonably certain that there is no access you would have to write an NDIS filter driver. This should give you full control over the network, including the ability to block all internet access to anyone except your application (or including).

This is fairly complex and requires learning driver development, and can't be done in c#.

于 2011-04-03T23:06:41.533 回答