.htaccess is a very secure way to password protect directories
on your website! Also, you can do loads of other things with
.htaccess
For example, another cool thing you can do with .htaccess is
dynamically rewrite the pages on your website. For more information
you can visit apaches website.