Page 1 of 1

How do I....

Posted: Sun Dec 04, 2005 8:28 pm
by RubberDuckie
password a webpage. I have a subfolder on my site I would like to password. Not the whole site .... just a subfolder. Any ideas? Should be simple. Thanks

Posted: Sun Dec 04, 2005 8:39 pm
by huypham
what kind of server do you have?

if it's linux, google .htpassword

Posted: Sun Dec 04, 2005 8:40 pm
by huypham
.htpasswd rather

Posted: Mon Dec 05, 2005 2:17 am
by Busby
Its a .htaccess file that is setup to use passwords. You use the htpasswd command line to generate a password file but you need a htaccess file. <b>But that is only when using Apache HTTP Server</b>

What type of passwording? For just you or for a members only type thing? You may want to look into a PHP/MySQL solution as if its something that matters the Apache method can be broken if the proper precautions are not taken. I've never dealt with IIS so I can't tell you how to do it with that.

And huypham, just because its linux doesn't mean that it is Apache. Most linux distros include Apache but even so, some people have their own preference.