in Web & Tech

Simple HTTP authentication for Drupal sites

Damien hat eine n├╝tzliche kleine Funktion geschrieben, die einem das
manuelle Anlegen eines .htaccess-Schutzes einer Drupal-Site (z.B. zur
Entwicklungszeit) abnimmt.

There are lots of times when you need some simple password protection, typically via , on your Drupal site; my most common use being for publicly accessible development sites that I don’t want accidentally indexed by search engines. Thanks to some simple code, originally written by someone at (thank you, phantom coder!), it’s pretty easy to add to your site and then enable per site instance, thus keeping both the site configuration & settings files simple. FYI this works equally well on both Drupal 6 and 7.

Simple HTTP authentication for Drupal sites

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)