Click to See Complete Forum and Search --> : disabling file save
Vodstok
01-08-2003, 07:54 AM
Im currently working on an internal site for my job where users can download software to install on their machines. However, we do not want them to know exactly where the file is downloading from. I have a little trick set up where a batch file executes the install command so they never see where the executable lies. unfortunately, all they have to do is click "save" on the window that pops up when launching the batch file, then look into the batch file to see where it points. I'm checking to see if anyone knows of a script that will either disable the save option, or just bypass the prompt alltogether.
If you are using a popup window, you could remove the toolbar. It won't completely protect you (people can still get you source out of their temp)
Anyway, a popup that does that might look something like this.
window.open('url','window name','width=500,height=400,resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status= no,menubar=no,copyhistroy=no');
That will open a new window with all window options disabled.
NOTE: the code above all goes on one line.
Vodstok
01-08-2003, 08:10 AM
Thanks for the speedy response. The window I am talking about is the one that automatically opens up in windows when you click to download a file. the one that gives you the options of "open", "save" or "cancell". Im not even sure if what i am asking is in the realm of Javascript, but it is the only scripting i am at all familair with so I wanted to start here.
Sorry if I wasnt specific enough before.
No, that isn't a JavaScript thing...I doubt you can even do it, as it is a browser security thing. It might be able to be done with activeX, but it can't be done with JavaScript.
Vodstok
01-08-2003, 08:17 AM
Thank you very much. that is exactly what i needed to know. :cool:
jeffmott
01-08-2003, 04:37 PM
You can use a Perl script to act as a sort of middle man (assuming they won't have access to the Web server as they do your batch file). The Perl script would read in the data of the executable and then output that through the Web server to the client with the applicatin/octet-stream header (as opposed to text/html).