C#.net:某些计算机的阻止/释放Internet [英] C#.net: BLOCK / RELEASE internet for some machine
本文介绍了C#.net:某些计算机的阻止/释放Internet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个用于数据包筛选的防火墙.
当用户访问一个他不应该访问的网站时,我的应用程序应该捕获该请求并在浏览器中显示一个自定义html页面,表明他无法访问该网站.
因此,如何捕获和丢弃或阻止数据包并显示自定义HTML.
问候,
Wasim Shaikh
Hi,
I want to create a firewall for packet filtering.
When user accesses a website which he is not supposed to, then my application should trap the request and display a custom html page in the browser, displaying that he cannot access the website.
So how can I trap and drops or block the packet and display custom HTML.
Regards,
Wasim Shaikh
推荐答案
您为什么要重新发明轮子,因为这些机器是Intranet的一部分,因此实现了代理服务器来控制Internet访问,然后将其用于Windows和Mac计算机,并且不需要安装可以在客户端计算机上关闭/绕过的实用程序.
Why are you trying to reinvent the wheel, as the machines are part of an Intranet implement a proxy server to control internet access this will then work for windows and Mac machines and not require installation of utilities that could be shut-down/bypassed on the client machines.
这篇关于C#.net:某些计算机的阻止/释放Internet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文