Construction
The password protection consists of 2 files:
- .htaccess - This file controls the access protection.
- .htpasswd - This file contains the user names with the passwords.
Construction - .htaccess and .htpasswd file.
.htaccess file:
AuthName "Top Secret"
AuthType Basic
AuthUserFile /.htpasswd
require valid-user
AuthName = The name that appears in the password dialog.
AuthType = Auth type directive.
AuthUserFile = this must be specified as an absolute path.
.htpasswd file:
user1:$1$is911rlD$irXTnoD7uq2wUYlHMo2ek.
z.B. user1 username with coded password ($1$is911rlD$irXTnoD7uq2wUYlHMo2ek.)
Download
Copyright © 2010 OK-S Software All Rights Reserved.