|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Mar 2004
Hosted on Sky
22 posts
Gave thanks: 0
Thanked 0 times
|
Directory Question
How do I block root access to a folder on my domain from being viewed in a web browser?
Example: I have a folder called pictures in my main directory where i store pictures. I made a html file called pictures, so to access this page the url would be www.mysite.com/pictures/pictures.html. Now if take away the pictures.html from the url so it read www.mysite.com/pictures/ my folder contents are visable to everyone (Index of pictures). I have had hosting before (with another company) where it wouldnt let people do that. But I see now anyone can view my hundreds of files without going to the .html page. Is there a setting or something I need to do to not allow people to view all the files in a folder on the server? Thanks |
|
|
|
|
#2 (permalink) |
|
Peaches!
Excelling Contributor
Joined in Jul 2003
Lives in Ottawa, Ontario, Canada
Hosted on Jose, Pass19
564 posts
Gave thanks: 0
Thanked 0 times
|
Open up cPanel and scroll down to the bottom, and find a icon named Index Manager. Click it. Find the folder you want, in this case pictures, click it's name (not the folder beside it).
There will be four options: Default System Setting No Indexes Standard Indexing (text only) Fancying Indexing (graphics) The one in bold is the one you want. Hope this helps ![]() |
|
|
|
|
#3 (permalink) | |
|
Surpass Fan
Super #1
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
|
Quote:
|
|
|
|
|
|
#5 (permalink) | |
|
ubuntu Fan
Super #1
Joined in Nov 2003
Lives in Calgary Alberta Canada
2,724 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
and i dont think there's an option to turn it off globaly for all accounts on a server
__________________
"A lot of people are waiting for Martin Luther King or Mahatma Gandhi to come back -- but they are gone. We are it. It is up to us. It is up to you." — Marian Wright Edelman |
|
|
|
|
|
#6 (permalink) |
|
Surpass Fan
Super #1
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
|
there's a plus to having it on, especially when first builidng the site and referring to other files style sheets or graphics.
after its up and running, man on man should that puppy be shut off. |
|
|