简体   繁体   English

C#应用程序拦截计算机发出的Web请求

[英]C# application to intercept out-going web requests from a computer

I am looking for a way to implement a simple C# application which can intercept out-going web requests from a computer so that I can allow or block the request depending on which website user is trying to access. 我正在寻找一种方法来实现一个简单的C#应用​​程序,该应用程序可以拦截来自计算机的发出的Web请求,以便我可以根据尝试访问的网站用户来允许或阻止该请求。 It is a kind of parental control application. 它是一种家长控制应用程序。 I just don't know which C# class would be able to do such intercepting and which steps would involve configuring it / making it works. 我只是不知道哪个C#类将能够进行此类拦截,以及哪些步骤将涉及对其进行配置/使其起作用。 Any suggestion is appreciated. 任何建议表示赞赏。

I think the easiest way to achive that would be creating your own HTTP proxy, for example by taking something like http://www.telerik.com/fiddler/fiddlercore . 我认为实现该目标的最简单方法是创建自己的HTTP代理,例如采用类似http://www.telerik.com/fiddler/fiddlercore的方法 In such way all the HTTP/HTTPS traffic would go through your proxy and you would be albe to control what can pass through and what can not, that is how corporations control what their employees can access from company's networks. 这样,所有HTTP / HTTPS流量都将通过您的代理,您将可以控制可以通过和不能通过的内容,这就是公司如何控制员工可以从公司的网络访问的内容。

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

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