.htaccess tutorial

htaccess Elite


Protect an entire directory

Security in htaccess: htpasswd, 401 Authentication

Protect an entire directory

Postby produke » 03 Oct 2006 01:43

Protect an entire directory by placing this in the .htaccess file in that directory.

Code: Select all
AuthName "Prompt"
AuthType Basic
AuthUserFile /home/askapache/.htpasswd
Require valid-user
User avatar
produke
 
Posts: 242
Joined: 25 Sep 2006 04:48

Return to Security and Authentication