htaccess file

They have: 141 posts

Joined: Aug 1999

Does anyone know how to password protect a directory using the .htaccess file?

They have: 122 posts

Joined: Jun 2000

AuthUserFile /path/to/.htpasswd
AuthName "Your Message Here"
require valid-user
AuthType basic

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.