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 » Choosing Surpass » Signed Up? » Is there a way to password protect certain folders?

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old July 11th, 2006, 6:38 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2006
11 posts
Gave thanks: 0
Thanked 0 times
Question Is there a way to password protect certain folders?

I am running a flash page on my account..for my photography business...and I would like to be able to upload client slide shows directly to my server for them to download, but I would like to make these files PW protected so not just anyone can get them


here is my page...if thats of any importance...

http://www.deannahallphotography.com

thanx in advance!
Deanna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 6:58 PM   #2 (permalink)
Registered User
Excelling Contributor
 
dubLeE's Avatar
 
Joined in Oct 2004
Hosted on pass61/63
623 posts
Gave thanks: 8
Thanked 2 times
nice site...

not sure if you can password protect individual files, maybe you can with a script or something but not sure about that..

but i do know you can use cPanel (Password Protect Directories) to password protect directories. this way you can put the slideshows in different directories which have their own passwords...

www.dublee.com/mnrspmc
you can see it at work there. it's a password protected directory

did you really think i was going to give you the password?!
__________________
Bronze Reseller :
- Pass 61
- Pass 63

dubLeE.com

Last edited by dubLeE; July 11th, 2006 at 6:59 PM..
dubLeE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:00 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2006
11 posts
Gave thanks: 0
Thanked 0 times
perfect..thats exaclty what I wanted...im ok with making each client a folder...


next question...LaughLaughLaugh!

i want them to be able to download an exe file that contains their slideshow...if I just stick it in the folder...it shows the file index first...then if I click the file...then it pops up the save as box....can I get it so they cant see the directory..and just the save as box opens? does this make any sense??
Deanna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:07 PM   #4 (permalink)
Registered User
Excelling Contributor
 
dubLeE's Avatar
 
Joined in Oct 2004
Hosted on pass61/63
623 posts
Gave thanks: 8
Thanked 2 times
so you want the "Save As" dialog box to show as soon as they login instead of the index page, right?

if that's the case then i am pretty sure you might be able to:
1) Setup some sort of redirect so that it automatically points them to the .exe
2).htaccess might help as well. you can configure it so that .exe opens first, and .html/.htm extensions.

you might want to wait for this one because i am not entirely sure if this works... until then i'll go test since i'm not doing anything anyways
__________________
Bronze Reseller :
- Pass 61
- Pass 63

dubLeE.com
dubLeE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:10 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2006
11 posts
Gave thanks: 0
Thanked 0 times
yup thats exactly what I want! THNK YOU SO MUCH FOR YOUR HELP!...
Deanna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:11 PM   #6 (permalink)
pineapples are sharp
Super #1
 
Brandonnn's Avatar
 
Joined in Dec 2005
5,773 posts
Gave thanks: 147
Thanked 151 times
yes there is also an option in CPanel that lets you dissallow directories... what you could do is just drop a blank index.htm file in the directory that you want to keep private and it'll work.
Brandonnn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:18 PM   #7 (permalink)
Registered User
Excelling Contributor
 
dubLeE's Avatar
 
Joined in Oct 2004
Hosted on pass61/63
623 posts
Gave thanks: 8
Thanked 2 times
i just tried out the .htaccess part
when you password protect the directory, the directory automatically gets a .htaccess which looks like the following or something similiar:

Code:
AuthType Basic

AuthName "ptest"

AuthUserFile "/home/omnifusi/.htpasswds/ptest/passwd"


require valid-user
all you have to do is add this at the end:
Code:
Options All -Indexes
DirectoryIndex index.exe index.php index.htm index.html
so in the end it looks like this:
Code:
AuthType Basic

AuthName "ptest"

AuthUserFile "/home/omnifusi/.htpasswds/ptest/passwd"


require valid-user

Options All -Indexes
DirectoryIndex index.exe index.php index.htm index.html
oh yeah and yours will vary a bit because of username and folder names and etc but that's the gist of it...

the index.exe is the .exe you want to open right away, you can name whatever you want just make sure you put it in correctly in the .htaccess

if you want to test it
www.omnifusionhosting.net/ptest
user: ptest
pass: ptest

the .exe will start right away ( the .exe is actual wget.exe so if you download it nothing will happen)

hope that helps
__________________
Bronze Reseller :
- Pass 61
- Pass 63

dubLeE.com

Last edited by dubLeE; July 11th, 2006 at 7:20 PM..
dubLeE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:26 PM   #8 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2006
11 posts
Gave thanks: 0
Thanked 0 times
PERFECTION!!!!!!!!!!!!! thank you so much!!!!!!!!!!!!!!!!!!!!
Deanna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2006, 7:31 PM   #9 (permalink)
Registered User
Excelling Contributor
 
dubLeE's Avatar
 
Joined in Oct 2004
Hosted on pass61/63
623 posts
Gave thanks: 8
Thanked 2 times
Quote:
Originally Posted by Deanna
PERFECTION!!!!!!!!!!!!! thank you so much!!!!!!!!!!!!!!!!!!!!
no problemo
__________________
Bronze Reseller :
- Pass 61
- Pass 63

dubLeE.com
dubLeE 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 not 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