How can I protect a part of a website ?
You have to create an .htaccess file in the directory you want to protect. Here is an example of the syntax :
AuthUserFile /home/*/*/protected/.htpasswd AuthGroupFile /dev/null AuthName ByPassword AuthType Basic<Limit GET POST> require valid-user </Limit>
Then you just have to use the htpasswd command of the Apache Web Server to create a base of users and encrypted passwords :
# htpasswd -c .htpasswd user
Comments Off on How can I protect a part of a website ?