.htaccess & .htpasswd to protect a web directory
well i created these two files and put them in the correct places, but it doesnt seem to work.
i would appreciate some help with this.
.htaccess file located in the directory i want protected:
.htpasswd file located at top level directory. I have GoDaddy if that matters.
Obviously, i used the correct path and username & password in my actual files - I just took them out for posting purposes.
Do I need to chmod anything to allow this to work?
I can navigate to the "protected" directory without being prompted for a login. This is not working!
Thanks to whoever can help.
well i created these two files and put them in the correct places, but it doesnt seem to work.
i would appreciate some help with this.
.htaccess file located in the directory i want protected:
Code:
AuthUserFile /home/content/u/s/e/username/html/.htpasswd
AuthGroupFile /dev/null
AuthName You must log in to access this page
AuthType Basic
require valid-user
.htpasswd file located at top level directory. I have GoDaddy if that matters.
Code:
username:md5 encrypted password
Obviously, i used the correct path and username & password in my actual files - I just took them out for posting purposes.
Do I need to chmod anything to allow this to work?
I can navigate to the "protected" directory without being prompted for a login. This is not working!
Thanks to whoever can help.





