[04] CAN I PASSWORD PROTECT MY DIRECTORIES?
Yes you can. You can create usernames and passwords for
directories using the 'htpasswd' command.
Follow these steps first!
1. Create a file called '.htaccess' in the directory you
want to protect (NOTE, its not a directory in your
HOME directory, but on the /www file system)
AuthUserFILE /www/path/to/directory/.htpasswd
AuthGroupFILE /dev/null
AuthNAME "my protected files"
AuthTYPE Basic
require valid-user
|
[back]