| Site Maintenance Program updates, securing your website, creating backups. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#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?
|
|
|
|
|
|
#2 (permalink) |
|
Skittles
Super #1
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. |
|
|
|
|
|
#3 (permalink) |
|
Skittles
Super #1
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. |
|
|
|
|
|
#4 (permalink) |
|
is scientific.
Resident.
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. |
|
|
|
|
|
#5 (permalink) |
|
after g, before i
Resident.
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.
|
|
|
|