Your must also have a file called ".htaccess" with the following text:
AuthType Basic
AuthUserFile /absolute/path/to/directory/.htpasswd
AuthName "Restricted Area"
require valid-user
Note:
This function is primarily for Apache web servers, however some other server platforms do support the same security functions.
If you encounter problems using the download function, verify the filename. You may have to rename the file, as some browsers will save the file as.htaccess.txt or .htaccess[1]. If all else fails you can copy and paste the text above into your .htpasswd file.
|