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:
- It requires editing the core's .htaccess file, which is not recommended
- In multisite environments the .htaccess file is shared with all of the sites, so you can't just install the password protection to one site
The Shield module is a simple module that allows you to password protect your site. All of the configuration is done on the administration interface, so no file editing is necessary. Since it is just a single module, it can be easily applied to just one site in a multisite environment.