Jump to content

Archived

This topic is now archived and is closed to further replies.

zhq

block downloading files to local temp directory while viewing files online

Recommended Posts

Dear All,

The database I used is MySQL. I am trying to block user from downloading files to local temp directory while viewing a confidential document online. I don't know how to do it.  Any help will be much appreciated. Thanks a lot in advance.

zhq

Share this post


Link to post
Share on other sites
NOt bang up on this but if you use this header...

header('Cache-Control: no-cache');

that will prevent the browser automatically cahcing the file - then you will need some magic to prevent the user saving the file - javascipt unfortunately so they could disable it. In that case use javascript to construct the page - that way they need it on to see it so you can then control them saving...

Share this post


Link to post
Share on other sites
No caching with IE
http://support.microsoft.com/kb/234067/

Caching in general
http://www.web-caching.com/mnot_tutorial/how.html

Share this post


Link to post
Share on other sites
Dear All,

Sorry I am not quite clear about this becasue I am new to all the topic. Using "header('Cache-Control: no-cache')", the downloading to the temp directory can be blockbed. For blocking user to use the 'save as' function to save a PDF file, the java script has to be used. Am I right? Instead of using Java script, can PHP script work for this?

I need a clear drection so that I know how to start my work. Thanks.

zhq

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.