Shield

Module Drupal Illustration Voir sur Drupal.org
Nb téléchargements : 25896

Components

  • Code
  • Documentation
  • Miscellaneous
  • User interface

Images


Licence

http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

permet d'ajouter une protection htaccess via l'admin

Release

Status : Published
Projects : Modules
Maintenance status : Actively maintained
Development status : Under active development
Supported Branches : 8.x-1.
shield Stable releases for this project are covered by the security advisory policy.

Description

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 leave the user field blank.

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

On plain old CGI

Since Drupal 7.23 you don't need any .htaccess modification for CGI (#670454: Support HTTP Authorization in CGI environment) but if you use plain old CGI you still need a modification:
Modify .htaccess, inside <IfModule mod_rewrite.c>. Add the following line at the beginning of the section:

  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.

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.



Toutes les informations proviennent du site drupal.org