Password protect your Drupal site with Shield-module
From time to time, there might arise a situation where you want to password protect your Drupal site. Maybe the site is under development, or you just want it to be available to a selection of users.
This is usually done with something called "HTTP Basic Auth", which allows you to password protect a site. This can be done in Apache by modifying the .htaccess file.
There are some great tutorials on how to do this, but this is not the correct way of doing it for couple of reasons.