in Crafts

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.