Web Development



How can I secure a data file on my website

By mr_t_wright ·
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..

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

At a high level

by robo_dev In reply to How can I secure a data f ...

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.

Collapse -


by mr_t_wright In reply to How can I secure a data f ...

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...

Related Discussions

Related Forums