If you're on an linux server, here's how to create the protected folder.
Step 1: Create the directory area and set permissions to read the area
Step 2: Create a file called .htaccess in the directory you want to protect.In that file, type in these lines (ingore the - - ):
- - - - - - - - - - - -
AuthUserFile /your/directory/here/.htpasswd
AuthGroupFile /dev/null
AuthName "Secure Document"
AuthType Basic
require user username
- - - - - - - - - - - - -
For example, if you were going to protect the /usr4/test/private/ directory and you want the required name to be class239, then your file would look like this:
- - - - - - - - - - - - -
AuthUserFile /usr4/test/private/.htpasswd
AuthGroupFile /dev/null
AuthName "Secure Document"
AuthType Basic
require user class239
Read the rest...
- - - - - - - - - - - - -
Take a look here too. http://www.javascriptkit.com/howto/htaccess3.shtml
hth,
.