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 » All Things Techy » Site Maintenance » Hide my folders??

Site Maintenance Program updates, securing your website, creating backups.

Reply
 
LinkBack Thread Tools Search this Thread
Old February 28th, 2006, 2:17 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2005
Lives in SEATTLE
6 posts
Gave thanks: 1
Thanked 0 times
Hide my folders??

I want to be able to hide my site's folders i.e. www.mysite.com/uploads . I still want to be able to link files though but don't want people seeing where they come from and looking at other files. How would I do this?
toozerosickz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 28th, 2006, 2:20 AM   #2 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
You could always just put a blank index.html file in the folder... but they can still view it in other methods.. I think there's also a way to disable a directory from displaying contents with the .htaccess file.. not sure exactly what.. I'll do a quick search for it, but maybe somebody else knows for sure
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people.
DewKnight is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 28th, 2006, 2:21 AM   #3 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
here it is, you just put a .htaccess file in that directory, and include the line:

Options -Indexes

from here: http://www.clockwatchers.com/htaccess_dir.html
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people.
DewKnight is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 28th, 2006, 2:21 AM   #4 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
You could put a blank index page in so they wouldn't just see the file tree...or turn Indexes off.

I'm not sure of an easy solution for linking to files in the upload area and not letting the user see the path in one way or another.

edit: I need to just throw my computer away.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 28th, 2006, 2:23 AM   #5 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
Depends how far you want to go. If you don't want the link to have the storage folder eg "uploads", you could do a PHP script or mod_rewrite. If you just want to make the folder non-browsable, turn off indexing for the folder. I'm pretty sure CPanel can do it, or a quick google search on .htaccess.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 28th, 2006, 2:29 AM   #6 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2005
Lives in SEATTLE
6 posts
Gave thanks: 1
Thanked 0 times
Thank you, I just turned off the indexes. Exactly what I wanted.
toozerosickz 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