Home >> Tag Archives: htaccess

Tag Archives: htaccess

How do I password-protect my website using .htaccess

Htaccess can be used to password-protect directories on your web sites. You can do this Password Protection very easily by using below steps Step 1. Change to the directory that you wish to protect In the following example we wish to protect a directory called pvt in our htdocs directory. [root@amit ]# cd /usr/local/apache2/htdocs/ [root@amit.htdocs] # mkdir pvt Step 2. ... Read More »