如何跟踪浏览器URL并阻止打开它。如果它存在于我的数据库中。 [英] How can trace Browser URLs and block to open it. if it is exist in my database.

查看:100
本文介绍了如何跟踪浏览器URL并阻止打开它。如果它存在于我的数据库中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我在c#中开发了一个窗口应用程序。我想阻止我的应用程序中列出的黑色网站。



现在我想跟踪/捕获浏览器网址并检查,它是否可以在我的数据库中找到,如果然后阻止在浏览器中打开。



我的目标是任何窗口服务或驱动程序或任何可以帮助相同的技巧..



提前感谢....

hello everyone i have developed a window application in c#. and i want to block websites which are black listed in my application.

now i want to trace/catch browser urls and check, is it available in my database and if exist then block to open in browser.

my target is on any window service or driver or any trick which can help for same..

thanks in advance....

推荐答案

请勿在客户端计算机上执行此操作。



普遍接受的做法是在网络上设置代理服务器。



配置所有客户端使用代理服务器,因此他们的http请求被发送到代理服务器。



然后,在代理服务器上,您可以为允许的内容和不允许的内容设置规则。 br />


如果代理允许,它会将请求转发到互联网,当收到回复时,将其转发给客户。



显然,你需要锁定对于客户来说,代理设置无法更改。



市场上也有很多基于硬件的过滤设备。



请记住,客户端计算机不值得信任。将过滤逻辑放在网络级别更安全。



如果你想查看代码是如何工作的,有一个名为SQUID的开源系统可以做到这一点。但要注意,这是一个庞大而复杂的软件。
Do not do it on the client machine.

The generally accepted way of doing his is to set up a proxy server on the network.

Configure all clients to use the proxy server, so their http requests are sent to the proxy server.

Then, on the proxy server, you can set rules for what is allowed and what isn't.

If the proxy allows it, it will forward the request to the internet, and when it receives a response, forward that to the client.

Obviously, you need to lock down the clients, so that the proxy settings cannot be changed.

Their are loads of hardware based filtering devices in the market too.

Remember, that client machines are not to be trusted. Putting the filtering logic in at a network level is much more secure.

There is an open source system called SQUID that does this, if you want to look at the code for how it works. Beware, though, that this is large and complex software.


这篇关于如何跟踪浏览器URL并阻止打开它。如果它存在于我的数据库中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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