Questions

How can I secure a data file on my website

Tags:
+
0 Votes
Locked

How can I secure a data file on my website

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..
  • +
    0 Votes
    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.

    +
    0 Votes

    re

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

  • +
    0 Votes
    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.

    +
    0 Votes

    re

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