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? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.