如何在Web浏览器中阻止http和https网站? [英] How to block the http and https website in your web browser?

查看:203
本文介绍了如何在Web浏览器中阻止http和https网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在您的网络浏览器中屏蔽http和https网站,但我可以打开其他网站。 www.google.com [ ^ ]和 www.yahoo.com [ ^ ]



例如:

i将阻止< a href =https://www.facebook.com> https://www.facebook.com [ ^ ]和 http://www.facebook.com [ ^ ]

How to block the http and https website in your web browser but i can open other website like. www.google.com[^] and www.yahoo.com[^]

for example:
i will block the https://www.facebook.com[^] and http://www.facebook.com[^]

推荐答案

您需要设置 e.Cancel = true WebBrowserNavigatingEventArgs e

见...

HTTP://社会。 msdn.microsoft.com/Forums/vstudio/en-US/3ce095c2-6a2b-4bb5-bbc2-3e245c81e1a3/h ow-do-i-block-specific-urls-in-the-webbrowser [ ^ ]

http://stackoverflow.com/questions/8204119/block-site-in -web-browser / 8206264#8206264 [ ^ ]

http://stackoverflow.com/questions/1020175/programmatic-way-to-temporarily-block-specific-web-sites [ ^ ]
You need to set e.Cancel = true of WebBrowserNavigatingEventArgs e.
See...
http://social.msdn.microsoft.com/Forums/vstudio/en-US/3ce095c2-6a2b-4bb5-bbc2-3e245c81e1a3/how-do-i-block-specific-urls-in-the-webbrowser[^]
http://stackoverflow.com/questions/8204119/block-site-in-web-browser/8206264#8206264[^]
http://stackoverflow.com/questions/1020175/programmatic-way-to-temporarily-block-specific-web-sites[^]


这篇关于如何在Web浏览器中阻止http和https网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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