Preventing http directory listing


Is there some way to prevent the listing of a directory other than including an index.html which redirects to does something else?




I put an .htaccess file in the directory that includes the line

Options -Indexes

I usually do that at the top level directory and it seems to apply to everything below it.