| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2008
2 posts
Gave thanks: 0
Thanked 0 times
|
Password protecting directories
Hey guys,
Having a bit of an issue regarding the passwording of certain directories. The directory I'm attempting to password is located in "/public_html/downloads/Members Only" I have 2 files in the Members Only folder, being the .htaccess and .htpasswd They both include as follows: .htaccess AuthName "Restricted Area" AuthType Basic AuthUserFile /home/lld/public_html/downloads/Members Only/.htpasswd AuthGroupFile /dev/null require valid-user .htpasswd lld:BThz5RqkIujZU And yet, when I go to the url 'mysite.com/downloads' and click on the Members Only folder in the directory listing, I do not get prompted to enter a password. If you haven't already guessed, not really experienced in the department, have just been following guides all day ![]() Thanks for your time, hope some one can shed some light. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2008
2 posts
Gave thanks: 0
Thanked 0 times
|
Ok, so I've successfully added a password protected directory.
But it isn't working the way I imagined it would. It is only prompting for the password when you browse into the "Members Only" folder and select a file to download. Is there any way I can change this, so It prompts the password while just entering the Members Only folder? Thanks. |
|
|
|
|
|
#3 (permalink) |
|
Surpass Staff
Seasoned Poster
Joined in Jun 2008
Hosted on dime158
44 posts
Gave thanks: 0
Thanked 7 times
|
Hmm.. The behavior you mentioned in the second post of yours seems odd. Here is what I have for my .htaccess
Code:
AuthType Basic AuthName "Documents" AuthUserFile "/home/curiae/.htpasswds/dennishenry.net/docs/passwd" require valid-user You can see how it acts by going to http://dennishenry.net/docs Hope this helps in some way :\ Edit: Oh and the best way I've found to password protect to make sure it works is doing it through cPanel via the Security section and the "Password Protect Directories" option |
|
|
|