icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » Password protecting directories

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old July 5th, 2008, 6:29 AM   #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.
psy01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 5th, 2008, 7:19 AM   #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.
psy01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 6th, 2008, 7:46 PM   #3 (permalink)
Surpass Staff
Seasoned Poster
 
Dennis's Avatar
 
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
and then the typical username:hashedpass in the mentioned passwd file.

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
Dennis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On