Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
Sergey Alexandrovich Kryukov 19-Aug-11 1:58am    
Not clear on what level do you want to block it? Why?
--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
 
Share this answer
 
v2
Comments
Madzmar25 19-Aug-11 3:28am    
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?
Abuu Mohamed 8-Nov-14 5:13am    
try to use filter or iphlpapi.dll
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?
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900