Secure a directory with htaccess

In the .htaccess file:

AuthUserFile /usr/local/you/safedir/.htpasswd
AuthGroupFile /dev/null
AuthName PasswordSecuredArea
AuthType Basic

require user username

Posted 17 Mar 2008, tagged with apache htaccess