Apache

How to make your website password protected using .htaccess? 10Dec, 2010

How to make your website password protected using .htaccess?

How to make a website password protected in just 2 minutes? It’s simple. Here, we will be using .htaccess to authenticate our valuable stuff on the web. Thus to achieve the same follow the below mention 3 simple steps. This whole process, will require us to create two files (.htaccess and .htpasswd) and have to put them on FTP under the folder to which we would like to make password protected. .htaccess – Below is the code for .htaccess file AuthUserFile /home/domains/xyz.com/.htpasswd [path to .htpasswd file] AuthType Basic AuthName “Warning: This is a restricted area…” .htpasswd – In this file, we need to mention the username and password using which one can login to restricted area. Username:passwordPlease note: we must…

Posted in: Apache, Security