Creating a Private file with Password Protection

Want to password protect your documents and pages? Follow these simple steps by adding this code to your htaccess file. It is preferred that you place it near the bottom of the document for best results.


#Restricted Access
AuthUserFile /home/username/.htpasswds/public_html/passwd
AuthName "RESTRICTED AREA"
AuthType Basic
<files "filename.php">
Require valid-user
</files>

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)