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.
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.