.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
matthieum
Forum Newbie
Posts: 1
Joined: Tue Sep 27, 2005 6:25 pm

.htaccess???

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

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

viewtopic.php?t=29816 -> Secure downloading link might be helpful
seahorse123
Forum Newbie
Posts: 8
Joined: Tue Sep 20, 2005 9:06 pm

Post by seahorse123 »

Look at the website:
http://www.easebayresources.com

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