Jump to content

Securing important downloads?


random1

Recommended Posts

First, nothing is impossible.

 

What you're trying to do is require a user to use your page as a gateway to a file.  Your php file, once the user appropriately authenticates, would access the file locally, read the file into memory, and output to the user with the appropriate header info(as a download if you make it so).

 

Yes, placing your files in a non WWW accessible folder is a good approach.

 

functions that may help (file_get_contents , readfile)

Archived

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

×
×
  • Create New...

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.