使用c#.net阻止浏览器 [英] blocking browser using c#.net

查看:259
本文介绍了使用c#.net阻止浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
我的应用程序需要阻止浏览器访问网络.我需要在c#.net中编写代码.怎么做?如果有人知道,请帮助我.如果有人在代理服务器概念的上下文中知道它,我会很高兴的.

Hi friends,
My application required to block browser from accessing the net.I need to write code in c#.net. How to do that? If any one knows kindly help me. If anybody knows it in the context of proxy server concept i will be delighted.

推荐答案

我唯一能想到的就是让您的应用打开端口80并保持它打开.当然,您的应用必须在浏览器之前打开才能正常运行.最好的选择是仅打开Windows防火墙,并阻止具有Internet功能的应用程序通常使用的端口上的出站流量.我不确定(因为我不使用它),但是Windows防火墙也许也可以阻止指定的应用程序.
The only thing I can think of is to have your app open port 80 and keep it open. Of course, your app has to be open BEFORE the browser in order for that to work. Your best bet is to simply turn on the Windows firewall and block outbound traffic on the ports typically used by internet capable apps. I''m not sure (because I don''t use it), but the Windows firewall may also be able to block specified apps.


这篇关于使用c#.net阻止浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆