Results 1 to 7 of 7

Thread: Index of /images page

  1. #1
    Join Date
    Jul 2007
    Posts
    1

    Default Index of /images page

    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

  2. #2
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    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.
    Last edited by Early Out; 07-19-2007 at 06:29 AM.

  3. #3
    Join Date
    Feb 2007
    Location
    http://www.bluehostreview.org
    Posts
    1,131

    Default

    or you can add these line to .htaccess file, it will prevent directory browsing.
    # Disable directory browsing
    Options -Indexes
    Charles Gan
    www.bluehostreview.org : Bluehost reviews hosted at bluehost

  4. #4
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Quote Originally Posted by charlesgan View Post
    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!

  5. #5
    Join Date
    Dec 2006
    Location
    Wisconsin
    Posts
    150

    Default

    You can also just throw in a blank index.html file to any directory you don't want to show.

  6. #6
    Join Date
    May 2007
    Posts
    135

    Default

    yeah, as afro has just said, put a blank file named index.html in the folder. Thats the easiest way to protect directory viweing.

  7. #7
    Join Date
    Aug 2007
    Location
    USA
    Posts
    8

    Smile

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •