Page 1 of 1

.htaccess???

Posted: Tue Sep 27, 2005 6:30 pm
by matthieum
Hey there,
I am doing a website in php.
Once a customer is logged in, I want him to be able to download files from his folder but I don't want someone else to download from his.
I was thought using an .htaccess for the parent folder of the customers folder and pass a parameter like login and password to this .htaccess file or a conf file that could be called by the .htaccess.
Would that be possible?
I hope I ve been clear enough
Thx

Posted: Tue Sep 27, 2005 6:50 pm
by feyd
I'd suggest an alternate: store the list of files they have access to in a database table. Use an .htaccess file to disable remote access to the actual storage folder using a "deny from all". Then create a downloading script that can verify the user's access and supply the files they can download.

Posted: Tue Sep 27, 2005 8:57 pm
by John Cartwright
viewtopic.php?t=29816 -> Secure downloading link might be helpful

Posted: Tue Sep 27, 2005 10:23 pm
by seahorse123
Look at the website:
http://www.easebayresources.com

they have the script "login manager" that may help you.