title: How to password protect WordPress blog using .htaccess
body: <p>This question is with respect to local host on my PC which is shared on the local network. I want selected people to access the website using .htaccess method or something similar. I used the following code for <a href="http://www.4webhelp.net/tutorials/misc/htaccess.php" rel="nofollow">.htacces/.htpasswd</a> method</p>
  
  <pre><code>// .htaccess file
  AuthName "Realm name"
  AuthType Basic
  AuthUserFile .htpasswd
  require valid-user 
  
  
  // .htpasswd file
  frances:WrU808BHQai36
  </code></pre>
  
  <p>This method is suppose to work but it is not working for me. I once got the dialog box asking for username and password but never again? Does this method work on localhost. Note: my wordpress blog is sitting in C:\blog folder which is outside XAMPP HTDOC folder.</p>