Skip to content

Kompile Learn

Turn off directory listing

Stop your server from showing a browsable list of every file in a folder.

What it is

When a folder has no index page, some servers show an automatic list of its files.

Why it matters

Anyone can browse and download every file, including ones you never meant to publish.

How to fix it

nginx

autoindex off;

Apache

Options -Indexes

Does your site have this problem?

Kompile Scan checks for this and the other problems in these guides in under a minute. Free for one site.

Check my site