passwording a part of my site?

Coolone

Senior member
Aug 18, 2001
983
0
0
can someone tell me how i can go about passwording a portion of my web site? i've been looking around on search engines and i just cant find anything that would work. if you need info about my site/server, please let me know

thanks in advance!
 

NetworkDad

Diamond Member
Jan 22, 2001
3,435
1
0
Depending on what you use for site management...that's where i would go first. Example, i use PleskServer to manage all of my domain stuff. Normally, your hosting company provides that info for you, check with them.
 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
Search Google for "htaccess"... if you have shell or FTP access, this is probably what you need.
 

Coolone

Senior member
Aug 18, 2001
983
0
0
well i own the server machine, and i'm using apache...

does that help? sorry if i'm being a newb with this
 

astartz

Senior member
Jan 23, 2001
550
0
71
In the directory which you want to protect, create a .htaccess file which contains:


AuthUserFile /full/path/to/passfile
AuthName "protected area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>

Now the /full/path/to/passfile need to be the full path.

OK, now just make a passfile use this format
username1:password It needs to say username : Password for some reason the exmple to the left is not working.
...

The passwords must be encrypted.

When people go to that directory they will be asked for there password.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
If you are using apache, you can create a .htaccess file. There are plenty of tutorials on the web for this.
 

OREOSpeedwagon

Diamond Member
May 30, 2001
8,485
1
81
I use PLESK to manage my domain as well, makes it easy to do things like password protecting a folder.
 

Colt45

Lifer
Apr 18, 2001
19,720
1
0
theres a program called htpasswd. its in your apache stuff.. RTFM about it :)

ive never used .htaccess, but htpasswd worked great for me when i used it.

There is htdigest too, which is the md5 encrypted version of htpasswd, IIRC.