Hi all,
I have an application with php5.4 and ms access2010 database. Visitor can download files from a page only if a session is created. This is managed by session variable.
Now problem is- if any visitor copy the document link an paste into a new explorer window can download that file but I want to prevent downloading file in this way also.
Can anybody guide me how to do this.
Prevent downloading files if session not created
Moderator: General Moderators
Re: Prevent downloading files if session not created
Make sure the document can be accessed only through a PHP script. That means no redirections: your script actually outputs the file.