# How to disable directory listings

> A directory without an index file may show every file in it, including backups and uploads. One server setting turns it off.

Security · HTML version: https://getreport.app/learn/directory-listing

## Directory listings

Passing looks like: No directory shows a file listing.

**Why it matters.** An auto-generated "Index of /" page shows every file in the folder, including backups, uploads and configuration files nobody ever linked to.

**How to fix it.**

1. Apache: Options -Indexes in .htaccess; nginx: autoindex off; or put an empty index.html in the folder.

Check your own page: https://getreport.app/
