Turning off the default directory listing

Do you have a directory full of images or zips that you do not want people to
be able to browse through? Typically a server is setup to prevent directory listing,
but sometimes they are not.

If not, become self-sufficient and fix it yourself:

IndexIgnore *

The * is a wildcard that matches all files, so if you stick that line into
an htaccess file in your images directory, nothing in that directory will be
allowed to be listed.

On the other hand, what if you did want the directory contents to be listed,
but only if they were HTML pages and not images? Simple says I:

IndexIgnore *.gif *.jpg

This would return a list of all files not ending in .jpg or .gif, but would
still list .txt, .html, etc

A "more correct" way is to put a file named .htaccess in that directory
consisting of only this line:

Options -indexes

What’s especially nice about doing it this way is all sub-directories of that
directory will also get their directory listings turned off.
You could then turn on indexes for one of those sub-directories just by making
a .htaccess file in that directory with:

Options +indexes

 

Similar Posts

  • Midjourney and Generative Fill for Epic Videos (new technique)

    Using Midjourney’s new zoom out and pan features in videos is epic! Adding a little generative fill from Photoshop’s AI to blend the scenes is a powerful combination.

    —————————————————————————————

    ? Twitter: https://twitter.com/ObscuriousMind

    Other Tools Mentioned
    ? HeyGen character animation: https://bit.ly/heygenavatar
    ? Kaiber video effects: https://kaiber.ai/?via=obscurious

    —————————————————————————————

    There are incredible possibilities with Midjourney in video. Expanding your scenes with Midjourney then hiding the seams with your original scene using generative fill inside Adobe Photoshop AI tools before combining it in a video editing platform. This works for zoom out and pan in Midjourney 5.2 and up. I also experimented with adding an animated avatar using HeyGen, as well as ai text to video effects in Kaiber.

    —————————————————————————————

    Chapters
    0:00 Demo
    0:27 Overview
    0:56 Midjourney image prompt
    1:55 Midjourney Zoom Out
    2:44 Blending with generative fill
    3:20 Blending and merging clips
    4:49 Zooming
    6:25 Adding character with HeyGen
    6:57 Add video effects with Kaiber
    7:35 Panning
    8:34 Outro