PHP & .htaccess

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
beeman000
Forum Newbie
Posts: 1
Joined: Fri Jan 28, 2005 7:24 am

PHP & .htaccess

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

place the files outside of the document root
Post Reply