使用 win32 API 阻止 Windows 桌面上的所有 url
我正在尝试开发一个应用程序,它可以在 Windows 桌面应用程序上使用 win32 api 阻止所有 url。
那么是否有任何 api 或任何程序以编程方式执行,以便我可以阻止所有 url?
I am trying to develop one application which can block all urls using win32 api on windows desktop application.
So is there any api or any procedure doing programmatically so that i can block all urls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
仅阻止 URL 是不可能的。如果您想确保没有人可以访问互联网,唯一的方法就是拔掉以太网电缆。 (或者任何为您提供连接的东西)原因如下:
相信我,早在高中时,我就在一个仓库里用扫描枪工作,并想出了如何用它检查电子邮件(在家里电脑的帮助下),因为互联网网关位于同一网络上。
如果您想阻止人们上网,请断开互联网连接。
It's impossible to block just URLs. If you want to make sure no one can access the internet the only way to do this would be to unplug the ethernet cable. (Or whatever is giving you connectivity) Here's why:
Believe me, back in highschool I worked in a warehouse with a scanner gun and figured out how I could check my email with it (with a little help from my computer at home) since an internet gateway was on the same network.
If you want to block people from surfing the web, disconnect the internet.
我想您可以使用 Windows 防火墙 API
http://msdn.microsoft .com/en-us/library/Aa366453.aspx
I suppose you can do it using the Windows Firewall API
http://msdn.microsoft.com/en-us/library/Aa366453.aspx
您可以使用 Windows 防火墙协议来执行此操作。这是微软提供的API。
对于 Vista,这很简单,但对于 XP,您需要做一些解决办法,因为没有可用的示例。
You can do this using Windows Firewall Protocol. This is an API provided by Microsoft.
For Vista it's straight-forward, but for XP you need to do some work around, as examples are not available for that.