ist in diesem zb
http://www.wcm.at/vb2/showthread.php...5&pagenumber=1
Erstens brauchst sowas in der httpd.conf
<Directory "/directory/to/protect">
Order deny,allow
allow from all
AllowOverride AuthConfig
</Directory>
Im directory dann so eine (oder aehnliche) .htaccess:
AuthUserFile /directory/to/protect/.htpasswd
#pfad zum .htpasswd file
AuthGroupFile /dev/null
# Gruppe is egal
AuthName StaffPages
# Anzeige im popup window
AuthType Basic
# Authentifizierungsart
#was darf der user (hier get/post)
<Limit GET POST>
require user testuser
</Limit>
und dann noch ein .htpasswd anlegen:
/usr/bin/htpasswd -c -f /directory/to/protect/.htpasswd testuser
(das legt ein neues .htpasswd an, weitere user hinzufuegen ohne dem
-c switch, siehe 'man htpasswd')
weitere examples (auch mit .htgroup Benutzung):
http://www.euronet.nl/~arnow/htpass...umentation.html
http://www.uga.edu/help/access-restrict.html
http://www.calpoly.edu/~www/htaccess_setup.html