Click here to Skip to main content
15,746,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im developing a cafe management system and i want to disable the feature when cafe user can download file via internet... is there a way to achieve this using c#? and without using any third party application?

You can do this by setting the
value [1803] to 3
of the key
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]

this works for internet explorer. if you need to do this for other browsers then you might have to do what TheyCallMeMrJames said
Share this answer
Simon Bang Terkildsen 19-Aug-11 13:23pm    
Notice zone 3 is the zone containing all sites that hasn't been placed in a zone
I don't think c# is the way to go here, you'd likely be best in native code as you'd need to get 'under' the web browser on the computer. You would need to be at the TCP/IP level and filtering the bits across the wire...minimally looking at request headers and response types.

It's not that this is impossible to achieve, it's just that you've added "without using any third party application" to the mix that complicates things.

You can get a managed router with web-configured interface that blocks ports, limits time, collects payments, throttles bandwidth and blocks adult content for less than $800. You can also get proxy software (possibly with similar controls) that lets you set up all kinds of rules.

Good luck in your project.

Share this answer
Simon Bang Terkildsen 19-Aug-11 13:18pm    
not really it can be done through the registry, as long as they use internet explorer.

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