阻止下载的方法... [英] Ways to block downloading...

查看:100
本文介绍了阻止下载的方法...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我不太擅长编程,我在这个论坛上曾经问过一次,但是我只是想澄清一下,或者我想知道我将如何阻止下载任何文件?就像有一个只专注于阻止/不允许下载文件的防火墙...使用c#可以实现吗?还是C ++?还是使用Java?如果不是,那么您能给我一个关于如何以编程方式实现这一目标的想法吗?
在此先感谢大家...

Hello guys im not really good at programming and i ask this once in this forum but i just want to clarify or i want to know how will i be able to block downloading of any file? its like having a firewall that only focus on blocking/not allowing the downloading of files... is this possible using c#? or c++? or perhaps using java? if not then can you give me an idea on how to achieve this programmatically?
thanks in advance guys...

推荐答案

这取决于您最终用户的聪明程度.

对于哑"用户,您可以修改主机文件.这将防止Windows甚至尝试执行DNS查找.它很容易更改.

您还可以使用Fiddler API创建自己的代理并将其停止.但是可以通过名为Ultrasurf的下载轻松实现此方法.

最好的办法是创建一个NDIS内核级驱动程序.它是最难但最好的.

Hogan
This depends on how smart you''re end users are.

For "dumb" users, you can modify the hosts file. This will prevent windows from even trying to do a DNS lookup. Its easily changed.

You could also use the Fiddler API to create your own proxy and stop it. But this method can easily be gotten around with a download called Ultrasurf.

The best was is to create a NDIS kernel level driver. Its the hardest, but best.

Hogan


我同意snorkie,但还要考虑即使内核驱动程序也是弱项":如果用户拥有"计算机(即:他作为管理员的等效特权)他可以按照与安装驱动程序相同的方式来卸载驱动程序.

这就是为什么通常需要硬件防火墙进行此类操作的原因:因为它们是外部设备,与最终用户无关.
但是-当然-缺点是用户可以将计算机随身携带并将其连接到另一个网络.

总之,没有很好的措施:但是需要将它们结合起来.
I agree with snorkie, but consider also that even a kernel driver is a "weak measure": if the user "owns" the computer (that is: he as administrator equivalent privileges) he can de-install the driver the same way you installed it.

That''s why this kind of things are normally demanded to hardware firewalls: because they are external devices, not related to the end-user.
But -of course- there is the drawback that the user can keep the computer with him and attach it to another network.

In conclusion, there no excellent measure: but a combination of them is needed.


这篇关于阻止下载的方法...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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