Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That’s something you can do in .htaccess 🙂

    http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec3 has a few suggestions.

    If you’re not comfortable with editing the .htaccess file, you can also manage this through your server’s control panel if you have access. It may be under manage indexes, directory browsing or similar depending on your host.

    Thread Starter synergy4

    (@synergy4)

    Thanks Ipstenu and cudazi for your kind replies and i’ll try and implement both of your suggestions.

    syndergy4,

    Another option is to upload a blank index.html file.
    This will effectively hide the directory listing on most web hosts.

    I’d go with the .htaccess route personally.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yeah, but then you have to do that for EVERY single folder. htaccess is everything.

    Thread Starter synergy4

    (@synergy4)

    Hey guys, I used the .htaccess route and it stopped the index of images from showing. It does something else now, which you can see if you click the link in my first post, but is way better than before. In the url it shows you the path to the images folder, better than listing each image down the page.

    Here’s the code I put in the .htaccess file:

    # disable directory browsing
    Options All -Indexes

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Index of Images showing?’ is closed to new replies.