William
William

Reputation: 1527

Apache - Deny listing directory but allow access to all subfolders

How can I deny listing the contents of a parent folder, but allow access to all subfolders?

I.E.

Upvotes: 0

Views: 2449

Answers (2)

Nikunj K.
Nikunj K.

Reputation: 9199

Deny Access Directory Listing

Options -Indexes

Don't have an index in all your directory's? Use this to deny access to all the directory listings, if there is no index file.

Upvotes: 0

Lazy Badger
Lazy Badger

Reputation: 97282

Options -Indexes in htaccess on parent, nothing in childs

Upvotes: 3

Related Questions