Quote:
Originally Posted by LD
Do have the code for that?
|
To password protect a directory.
First go here and encrypt a userID/password.
http://www.e2.u-net.com/htaccess/make.htm
In a directory someplace on your server create a file named.
Copy and paste your encrypted userID/password into this file
Now in the directory that you want to protect create a file named
Place this text in the file changing the path to your actually path.
Code:
AuthUserFile /path/to/your/password/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Whatever You Want The Password Dialog To Be Called"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all
require valid-user
</Limit>
Enjoy your much safer admin.