Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: bakedjake
How and where in apache setup restricted directory.
Example: when user click to restricted dir. must appear login window
let's say www.widgets.com/members/ ==>> so members area is restricted directory, under this directory I'll use .htaccess,.htpasswd.
Sorry for bad English.
Thanks for any help.
Have a nice day :)
you'll need both files for. the .htaccess to tell the webserver that a specific directory is restricted (i.e. the current one) and a .htpasswd file in which the username(s) and password(s) are stored.
in the .htaccess file place the following text:
in the .htpasswd file you put username and password seperated by a : (double-point). the password is encrypted. you can use a commandline tool or an online tool (look for .htpasswd and crypt) to encrypt your password. that's all.