阻止下载文件,如exe [英] Block downloading file like exe

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

问题描述

大家好我想知道是否有人可以帮助我...我计划创建一个程序,将阻止所有下载文件,如exe文件winrar和我指定的其他文件...我们可以使用C#实现这一目标?如果是的话怎么样?任何人都可以给我一个链接请...提前感谢

Hi guys im just wondering if anyone can help me with this... im planning to create a program that will block all downloading of files like exe file winrar and other files that i specify... can we achieve that using C#? if so then how? can anyone give me a link please... thanks in advance

推荐答案

在我看来,这是无用的,实际上是适得其反的活动。您应该阻止自动执行下载的可执行文件,永远不要下载它们。



您是否帮助您的用户或同事与他们打架?如果某个用户是白痴,没有什么可以帮助,特别是你天真的保护;他或她的电脑将被永久感染。但是,如果使用不是白痴,你将阻止下载重要的工作人员。



您想指定可以下载的确切内容?但你怎么知道你知道它?此外,如果您允许某个文件,则用户可以下载其正版或其受感染或恶意软件版本。你怎么能确定?



好​​的防病毒软件可以提供帮助,教育用户可以提供帮助,沙盒是一件好事,但你的想法根本行不通。你可以提出另一个想法,一个好主意。开始研究吧!



-SA
In my opinion, this is useless and actually counter-productive activity. You should prevent automatic execution of the downloaded executable files, never downloading them.

Do you help your users or colleagues of fighting with them? If some user is an idiot, nothing will help, especially your naive "protection"; his or her computer will be permanently infected. But if the use is not an idiot you will prevent downloading important staff.

You want to specify what exactly can be allowed to download? But how do you know that you know it? Besides, if you allow some file, the user can download an authentic version of it or its infected or malware version. How can you be sure?

Good antivirus could help, educating of users can help, sandboxing is a great thing, but your idea simply cannot work. You can put forward another idea, a good one. Start working on it!

—SA


Madzmar25问:
Madzmar25 asked:



实际上我正在开发一个咖啡厅管理系统,其中一个功能将不允许任何咖啡馆用户从互联网上下载文件...是有没有办法实现这个目标?


Actually im developing a Cafe Management System and one of this features will not allow any cafe user to download files from the internet... is there a way to accomplish this?

那么你可能需要kiosk模式。

请参阅:

使用C#以Kiosk模式运行网站 [ ^ ],

c#program ctrl-alt-del screen windows 7 [ ^ ]。



-SA

It's possible that you need the "kiosk mode" then.
Please see:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

—SA


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

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