Home » Internet » Password protection with htaccess

Password protection with htaccess

On developing stage of website developers can protect their website access with .htaccess password.
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
Now user Website can only access the authorized users

Leave a Reply


Check Also

website development

How to disable AdBlock extensions for a particular website

Example website is smarttips.in ,replace with your website and guide your users to disable the ...