如何使用C#.Net阻止Internet访问 [英] How to block Internet Acess using C#.Net
问题描述
对如何使用C#.Net(windows)或控制台应用程序阻止Internet访问的任何想法都非常了解,以便我的应用程序可以作为后台进程(例如Windows Service)以及当有人打开IE/Mozilla或任何其他浏览器时运行,它不允许浏览.
问候
Amit Kumar Barik
Friends any idea how to block internet access using C#.Net(windows) or console Application so that my Application will run as as a back process(like windows Service) and when some one opens IE/Mozilla or any other Browser , it will not allow to browse.
Regards
Amit Kumar Barik
推荐答案
当有人打开IE/Mozilla时或任何其他浏览器,将不允许浏览.
when some one opens IE/Mozilla or any other Browser , it will not allow to browse.
几乎没有什么奇怪的要求,您只需要通过应用程序停止在系统中运行的万维网服务即可.退出应用程序时重新启动它.
Little weird requirement yet, you just need to stop the World Wide Web service running in the system through your application. Restart it when you exit your application.
您可以通过打开端口80而不释放它来执行此操作.
在大多数情况下,都是使用路由器/防火墙设备.
You may be able to do this by opening port 80 and not release it.
Most of the time, a router/firewall appliance is used for this.
这篇关于如何使用C#.Net阻止Internet访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!