Index of / page

In browser I have “Index of /” with all my files on server seeing from all.
How can I protect the page?
Claudio

with htaccess

Options -indexes

see https://panel.dreamhost.com/kbase/index.cgi?area=2517&keyword=indexes for more info

All you need is an index.htm file in that folder. Even if it is blank, then the listing won’t show.
Silk

I prefer “index.html” myself, with the more excruciatingly proper four-letter extension standing for HyperText Markup Language, since I regard “.htm” as a bastardized Microsoftism dating to archaic operating systems that limited extensions to three letters.

– Dan

Better not tell the open source people.

They’ll really get their panties in a wad about .php!