Latest news
Home » Internet » Password protection with htaccess

Password protection with htaccess

On developing stage of website developers can protect their website access with .htaccess password.
Steps:
First create a .htaccess file then at the end of file add the following lines
AuthName “Restricted Area”
AuthType Basic
AuthUserFile /home/smartips/.htpasswd
AuthGroupFile /dev/null
require valid-user

2. create a .htpasswd file and give username and password
smarttips:XsP89zmAUibSw
Now user Website can only access the authorized users

Leave a Reply

x

Check Also

How to delete your whatsapp status

WhatsApp is a famous messaging App on the internet. Now Facebook is managing Whatsapp. Whatsapp is ...