Index of / page

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

with htaccess

Options -indexes

see 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.

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!