Web Hosting Talk







View Full Version : Directory password protection


gthorley
10-20-2000, 08:06 PM
From the FTP thread the comment was made that by Felix

Final note... Overusage of .htaccess file will only slow down your web site, so try to keep it simple and straight-forward!

What would be over use? Can it be put in just one spot which covers all directories. Chicken mentioned that if it is in the main directory then to access the site password would be needed. Chicken which is the main directory? I see the following: /, /web, /certs, /logs, /users, /users/name1, /users/name2, /users/name1/web, /users/name2/web,

So far what I understand is my web site starts at /web as the index.htm has to be there if I want it to load with just artbyjudy.com so sub folders will be of /web as in /web/florals, /web/landscapes, web/links whatever. If that is the case what purpose do the others serve I guess users keeps track of names the administrator sets up but what about /users/name1/web, /users/name2/web, are these so the users can set up their own home page which would go in the web directory and how would any access them?

One last thing when I sign in to the site it asks for a name and password then whenever I go their it doesn't until I have rebooted my machine. Is there not a log out for security purposes. I asked support this latter question but unless they work weekends probably will not get a reply today.

Chicken
10-20-2000, 09:04 PM
It can be put in just your /web directory, and that would take care of everything, but usually you don't want to lock people out of the entire site, do you?

Your main directory is /web

Yes, subfolders will be /web/florals (so if you just wanted to lock one folder, say /web/membersonly , then you'd just put the .htaccess and .htpasswd files in *that* directory.

/users/name1/web is the web directory for the user, that is correct and they can be viewed at either http://domain.com/users/name1 or http://domain.com/~name1 (they can FTP to their directory via their user name and password)

It isn't until you reboot, it is if you close the Internet Explorer window. If you close it and then go to your siteadmin, you'll have to re-enter the username/password.

gthorley
10-20-2000, 11:46 PM
Thanks Chicken

Finally got a reply to my question. Your answer is better it is a lot simpler to just close Netscape than manually cancel a cookie.