Jump to content

Protected downloads


Didjee
 Share

Recommended Posts

Hi,

I'm looking for a solution for the following:

In a website we are building at the moment some files may only be downloaded after filling in a email address. After posting the form the direct link to the download will be sent to the given email address.

In the backend there should be an option to label a downloadable file as 'protected'.

What will be best way to achieve this?

Link to comment
Share on other sites

I'm running out of time but quickly wanted to mention: $config->pagefileSecure = true; in your /site/config.php file (see the comments in the file and search google for more info). You might also want to look at the wireSendFile() function in /wire/core/Functions.php, if you'd like to protect the file in another manner. 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...