Hier kom ik niet helemaal uit :roll:
Typ ik dit in bv simpletekst of juist opnemen in de HTML?
How To Password Protect Your Web Directories
Follow the below guidelines to use .htaccess to protect a directory
Create or edit a file called .htaccess in the directory you want protected (note: any sub directories under this directory will all be affected unless another .htaccess file is in that sub directory.)
shell prompt: pico.htaccess
Type in the following: (please use reasonable common sense to fix to correct paths etc.)
<Limit GET POST>
Ok, now save the file and exit.
Now you must create the database file for storing users and their passwords. Use the htpasswd command to achieve this.
Note: The AuthUserFile path is the file htpasswd creates for storing the password
Ok, now go to that path where you had in AuthUserFile put the password file
In that directory type the following:
shell prompt: htpasswd -c .htpasswd <username>
The program will prompt you for a password, then verify by asking a second time.
Bingo, your all set. Now how do you add or delete users you may be wondering?
To add more users, just use the same command without the -c switch:
shell prompt:: htpasswd .htpasswd <newmember>will add the new user to the .htpasswd file.
To delete users, open the .htpasswd file in a text editor and delete the appropriate line of the user will you no longer want access to that directory.