Maxime Chambreuil

Monday July 2, 2007

How can I protect a part of a website ?

Max @ 22:14 | Filed under: Information Technology

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

3 Comments

  1. … [Trackback]

    […] Read More Information here on that Topic: chambreuil.com/2007/07/02/how-can-i-protect-a-part-of-a-website […]

    Trackback by imitation tag heuer aquaracer waf111z — Thursday March 19, 2020 @ 08:50

  2. … [Trackback]

    […] Info on that Topic: chambreuil.com/2007/07/02/how-can-i-protect-a-part-of-a-website […]

    Trackback by https://przedszkolelidzbark.pl/ — Friday March 20, 2020 @ 04:36

  3. … [Trackback]

    […] There you will find 48104 more Info on that Topic: chambreuil.com/2007/07/02/how-can-i-protect-a-part-of-a-website […]

    Trackback by winnipeg orthodontics — Saturday March 21, 2020 @ 21:30

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.

Copyright © Maxime Chambreuil