password protect folders
Moderator: General Moderators
password protect folders
I need a way to protect folders with user content inside. I need some way of keeping a users content in an easy to retrieve style but also protected so that way they are the only one able to get inside the folder when they login. Any ideas?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: password protect folders
What web server are you using? HTTP Authentication is pretty easy to setup. Often you host will have a way to configure it from some control panel.
(#10850)
Re: password protect folders
I am using a linux web server provided by godaddy.
Re: password protect folders
Anyone else have any input?
Re: password protect folders
The Apache manual provides details on the use of htpasswd for the creation of an encrypted password file. You then place the resulting file above the web root. Then place the .htaccess file in the directories you wish to protect. They should look something like this:
Code: Select all
authtype basic
authname ADMIN
authuserfile /data/18/1/130/82/265411/user/958741/cgi-bin/.file
require valid-userRe: password protect folders
How do sites like photobucket protect users' images from others? I want to do something like that.
Re: password protect folders
So how would I open a file in a the protected folder from a script.