Question Locked

How can I secure a data file on my website

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
hello all ok here is what I am trying to do. I want to have a file on my website that viewers can download, and after doing some research I learned that if I make a link and put the file as the target it can be downloaded. However I want to secure it so that you have to put in a password before you can download the file. Does anyone know how I can do this? I'm not too familiar with writing scripts so I am stuck..

3 replies

by robo_dev

you put the file on a page that requires authentication to access.

On the main page you can put what looks like a link to the file, but it just takes you to the authentication page.

Remember that if the file is just sitting in the same directory as the web content, you cannot prevent the user from grabbing it.

by mr_t_wright

I don't know how to set up the authentication page, currently the download page is not visible on the site. It is set to redirect viewers to the dl page after their payment is complete with paypal however once they have paid once they will have the dl page. So this page just randomly changes for the time being...

This discussion is closed to new replies.