HTPasswd window with Shield module

Summary

PHP Authentication shield. It creates a simple shield for the site with Apache authentication. It hides the sites, if the user does not know a simple username/password. It handles Drupal as a "walled garden".
This module helps you to protect your (dev) site with HTTP authentication.

Configuration

If you don't need the authentication just live blank the user field.

  1. enable the module
  2. go to the admin interface (admin/config/system/shield) and fill the form
  3. nothing else :)

On CGI and FastCGI

Modify .htaccess, inside <IfModule mod_rewrite.c>. Add the following line at the begining of the section:

  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

Other

The original idea of the project came from chx. He also added tips for improvements. I'd like to thank the help and ideas of boombatower.

2012-04-26: Announcement: kalman.hosszu became a co-mainter of the module. He merges the features of his HTPasswd protection module into the Shield. Thank you very much Kálmán!

Note: If you want to use it only on a dev site, and not in the production site, I suggest you to consider using the Environment modules and reading issue #1394326.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.2 tar.gz (8.11 KB) | zip (9.07 KB) 2012-Apr-26 Notes
6.x-1.1 tar.gz (8.01 KB) | zip (8.68 KB) 2011-Dec-13 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.63 KB) | zip (9.65 KB) 2013-May-25 Notes
6.x-1.x-dev tar.gz (8.15 KB) | zip (8.83 KB) 2013-May-25 Notes

Project Information


Maintainers for Shield

  • kalman.hosszu - 12 commits
    last: 22 weeks ago, first: 1 year ago
  • pkiraly - 17 commits
    last: 1 year ago, first: 1 year ago

Issues for Shield

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants
nobody click here