Click here to Skip to main content
14,920,188 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi!
To maintain the Information security, i just wants to prevent my domain users to upload any file to internet.
Or I want to show an alert message to them when they clicked any button that open choose file dialog.

Understand? If not, then No Problem...
For example

I have clicked a button on webpage opened in any browser (Let's assume Google Chrome), Then OpenFileDialog will be shown. Now Before Showing "OpenFileDialog" i want to show a message "Why do you want to upload file?"(I'll use C# Winform for this).


What i have done?
I have blocked a lot of online data storage sites but i don't want any website to let user upload anything without an alert and remark.

What I have tried:

What i have done?
I have blocked a lot of online data storage sites from server but i don't want any website to let user upload anything without an alert and remark.

Any Ideas, Tricks or Tips or Links are welcomed.
Thanking you!
Posted
Updated 31-Jan-17 1:06am
Comments
Richard MacCutchan 31-Jan-17 6:37am
   
I do not think you can do that with a Winform. You will need to install it on each PC in the domain, but that will not prevent the user from doing what they want.
Awesh Vishwakarma 31-Jan-17 7:00am
   
Then what programming language should i use to achieve this?
Richard MacCutchan 31-Jan-17 7:48am
   
None, there is nothing you can do to stop your users uploading files. Unless you close all access to the internet.

You can't do it in practice, and certainly not as part of a C# program.
And even if you could, it's sticking your finger in the dyke while the water is already pouring over the top: windows - Is there any browser or method to prevent uploading? - Super User[^]
   
Comments
Awesh Vishwakarma 31-Jan-17 7:06am
   
I am trying to do like other data loss prevention software do. a Known program for this is Trend Micro.
I think there will be no solution that can cover all cases.

A common solution is setting up a HTTP proxy server on a system in your local net and ensure that all clients use it instead of direct internet access (e.g. by policies or redirection on the internet gateway / router). Then configure the proxy to block outgoing octet streams.

However, such restrictions can be circumvented and may have unwanted side effects (blocking wanted traffic).
   
v2

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