title: Password protecting mamp:localhost
body: <p>I've created a .htpasswd file and .htaccess to password protect my localhost. I have put both in my mamp folder (where my website folders are). I have encrypted the password put in my htaccess :</p>
  
  <pre><code>AuthUserFile /WorkArea/mamp/
  AuthType Basic
  AuthName "localhost"
  Require valid-user
  </code></pre>
  
  <p>It has locked me out of my localhost by giving me a 500 internal error. </p>