PDA

View Full Version : Index of /images page



plork
07-19-2007, 06:46 AM
Hi all,

I have created a folder called images on my domain

when i type www.mydomain.com\images I get an Index of /images page displayed with all the images i have uploaded

Is there anyway I can hide this so general public cannot see the contents of folders on my website?

Thanks for nay help

Early Out
07-19-2007, 07:27 AM
On the Control Panel, choose the Index Manager. There, you can turn off indexing for whatever directories you like.

I believe that the settings "ripple down," so if you set public_html for "no indexing," that will apply to all the directories under it, as well.

charlesgan
07-19-2007, 11:01 AM
or you can add these line to .htaccess file, it will prevent directory browsing.

# Disable directory browsing
Options -Indexes

Early Out
07-19-2007, 01:56 PM
or you can add these line to .htaccess file, it will prevent directory browsing.That's actually what the Index Manager in cPanel does - it creates the .htaccess entries for you. Easier than editing by hand!

AfroJoJo
07-19-2007, 10:18 PM
You can also just throw in a blank index.html file to any directory you don't want to show.

jbladeus
07-21-2007, 03:10 PM
yeah, as afro has just said, put a blank file named index.html in the folder. Thats the easiest way to protect directory viweing.

mshs2
08-16-2007, 05:11 PM
Another option is to chage that page(s) to where they are password protected pages. This way, only those that you give out IDs and PWs for those pages, will be able to access those pages, while the general public will see something that says that access is denied or something of that nature.

Hope this helps some.