Jump to content

How to password a Unix folder?


TropicalBeach

Recommended Posts

[!--quoteo(post=359649:date=Mar 29 2006, 08:19 AM:name=TropicalBeach)--][div class=\'quotetop\']QUOTE(TropicalBeach @ Mar 29 2006, 08:19 AM) [snapback]359649[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi,
Newbie here...

I wish to password a web folder to allow only a few chosen users to see the contents.
Eg. www.foo.com/2006

What Php code is needed?
[/quote]

you can do that with an sql database and have a login page. or you can use somethign as simple as a .htaccess file if you want.

.htaccess files just have to reside in the directory you want to protect (it will protect all subdirectories as well) and force the user to enter a user/pass before entering that dir.
  • 6 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.