Click here to Skip to main content
15,885,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
here now am sitting at .net application.here i want to browse all the contents but i want to restrict file upload and file download from the internet.in simple words user can access i.e.., they can browse.but i want to restrict upload and download item.i am waiting for your valuable answers.
Posted
Updated 5-Jul-12 23:18pm
v4
Comments
Prasad_Kulkarni 6-Jul-12 4:26am    
Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
OriginalGriff 6-Jul-12 4:32am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Sandeep Mewara 6-Jul-12 5:03am    
Please confirm, Are you tring to build a .NET winforms/service application that will not allow to download/upload?
Dhinesh kumar.V 6-Jul-12 5:23am    
sir can you tell me how can i start now.from which application to start..
Raghuveer Kasyap 6-Jul-12 6:11am    
What type of application it is Either service based/ Web or windows application

1 solution

Why don't you try and write a firewall rule rather developing an application for that .Developing firewall is not an easy task and especially with framework like .net it has a lot of security loops.My best suggestion would be to create a rule on the firewall to block the user action.If you are hell-bent on creating a .NET application

Create a windows service to listen to all OS events
and capture and block the events that allows the Download dialog and Open File dialog to occur,but you have to make sure that those events are triggered by a browser,or else you'll be blocking all calls to those events.

These URLS could help

http://msdn.microsoft.com/en-us/library/ms644990.aspx
http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.aspx
http://social.msdn.microsoft.com/Forums/en/csharplanguage/thread/0417de9f-50b9-4d2b-a3df-6531d0af5a82

This would be great if you could tweak in a little to read from the service into a web page

http://msdn.microsoft.com/en-us/library/ms178713.aspx[^]
 
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