.htaccess password

To protect the folder with the Authentication with the help of .htaccess
htaccess

follow the below steps:

create .htaccess file with below content

AuthUserFile “/home/domain/.htpasswds/passwd”
AuthType Basic
AuthName “ohm”
require valid-user

Go to root folder and open .htpasswds folder
then create a passwd file
in the below format

ohm:ogD4d24a6lf4o

encrypt your password with md5

Print Friendly, PDF & Email

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.