title: Password Protect Page using .htaccess
body: <p>I followed simple <a href="http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/" rel="nofollow noreferrer">steps</a>  to make a password protected webpage, but it does not work i.e. I can open the page from any browser and it does not ask me to login to view the page. 
  The .htaccess file looks like this </p>
  
  <pre><code>AuthUserFile PATH/.htpasswd
  AuthGroupFile /dev/null
  AuthName "Please Login"
  AuthType Basic
  &lt;Files "index.html"&gt;
  require valid-user
  &lt;/Files&gt;
  </code></pre>
  
  <p>and the .htpasswd file contains <code>username:encrypted password</code></p>
  
  <p>UPDATE: This <a href="https://devops.profitbricks.com/tutorials/set-up-basic-authentication-in-apache-using-htaccess-on-centos-7/" rel="nofollow noreferrer">article</a> helped me to fix that issue. </p>