title: How do I protect a directory within github-pages?
body: <p>I am building my personal website using Jekyll and hosting it at github-pages. I would like to have a password protected area (just password protected directory, not the whole website). I have tried a few options and tricks to get <code>htaccess</code> to work but failed. </p>
  
  <p>I would like to know if someone managed to use <code>htaccess</code>, or any other method, to protect a directory on github-pages. </p>
  
  <p>Listing solutions which did not work for me (or I failed to get them to work):<br>
  *<a href="https://flohei.de/2014/11/password-protected-pages-with-jekyll/">Flohei.</a><br>
  *<a href="http://newbieonruby.com/jekyll-include-htaccess/">Jeremy Ricketts.</a></p>