Hi guys it's very simple password protect to directory
The below code is used to protect the directory
.htaccess
==========
AuthUserFile /home/ashok/www/api/appchat/report/.htpasswd
AuthType Basic
AuthName "Ashok Only Allowed Valid User"
Require valid-user
Here /home/ashok/www/api/appchat/report/ ======> this is file full path
.htpasswd ======> this is htpassword file
/home/ashok/www/api/appchat/report/.htpasswd =========> this is htpassword path with file name
.htpasswd
=============
together:$apr1$zcGzQRY2$n788sV7DbBEpR2t13bwnS/
together ====>user name (together)
$apr1$zcGzQRY2$n788sV7DbBEpR2t13bwnS/ ======> encrypted password(together)
username:encrypted password
The below path is used to generate .htpasswd username and password
http://www.htaccesstools.com/htpasswd-generator/
Thank you All..
The below code is used to protect the directory
.htaccess
==========
AuthUserFile /home/ashok/www/api/appchat/report/.htpasswd
AuthType Basic
AuthName "Ashok Only Allowed Valid User"
Require valid-user
Here /home/ashok/www/api/appchat/report/ ======> this is file full path
.htpasswd ======> this is htpassword file
/home/ashok/www/api/appchat/report/.htpasswd =========> this is htpassword path with file name
.htpasswd
=============
together:$apr1$zcGzQRY2$n788sV7DbBEpR2t13bwnS/
together ====>user name (together)
$apr1$zcGzQRY2$n788sV7DbBEpR2t13bwnS/ ======> encrypted password(together)
username:encrypted password
The below path is used to generate .htpasswd username and password
http://www.htaccesstools.com/htpasswd-generator/
Thank you All..
No comments:
Post a Comment