kshet26 Posted June 22, 2008 Share Posted June 22, 2008 I'm trying to figure out how sites with user uploaded content protect folders. I know about htaccess and htpassword, but are they really dynamically creating these files for every user? If this is indeed how they do it, how do I avoid using the login dialog box? Link to comment https://forums.phpfreaks.com/topic/111391-protecting-web-folders-using-login/ Share on other sites More sharing options...
trq Posted June 22, 2008 Share Posted June 22, 2008 You can simply lock your directories from public access then use a force download script like the one found in our FAQ/Code snippet repository to serve up the files once a user is validated. Link to comment https://forums.phpfreaks.com/topic/111391-protecting-web-folders-using-login/#findComment-571793 Share on other sites More sharing options...
kshet26 Posted June 22, 2008 Author Share Posted June 22, 2008 This is a new concept for me. How do you suggest I lock the directory? Can users still view the directories? Or do I have to keep a record of the files in a db and return them as needed? Link to comment https://forums.phpfreaks.com/topic/111391-protecting-web-folders-using-login/#findComment-571797 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.