Page 1 of 1

PHP & .htaccess

Posted: Fri Jan 28, 2005 7:27 am
by beeman000
I have built a login script to a secure part of a website. Once the user logs in they are presented with files they can download. I want to protect these files from being directly downloaded by specifying the direct url, so i added a .htaccess file to control that. However this, of course, causes the user to have to input their username and password twice, once to login and once to download the file. Is their anyway around this? I want to continue to have a php login, because the files are user specific and are displayed based on the the username and login.
Thanks.

Posted: Fri Jan 28, 2005 8:05 am
by feyd
place the files outside of the document root