What AuditX checks
The scan requests up to ten folders and looks for the page a web server shows when a folder has no index file and listing is switched on. It always includes seven common names: /uploads/, /backup/, /assets/, /files/, /images/, /tmp/ and /old/. Folders your own page points at, such as the parent folder of an image or script, fill the remaining places on the same host. A folder counts as listed when it answers with a success status (2xx) and the page has a title or heading that starts with "Index of /" (Apache and nginx), or the text "[To Parent Directory]" (IIS). Redirects are followed up to three times. The check fails if any folder is listed and passes if none is. If no request completes, it is shown as not measured and is left out of the score. Listing pages from other servers are not recognised.
Why it matters
A folder listing shows every file in the folder, including files you never linked to: old backups, exports, customer uploads or draft documents.
Visitors and bots can open and download anything listed. Search engines may also index those files.
How to fix it
- Switch directory listing off in your web server settings. On Apache use Options -Indexes, on nginx use autoindex off, and on IIS disable the Directory Browsing feature.
- Add an empty index.html file to each folder as a second layer, in case the setting is changed later.
- Look at what the listing exposed. Move backups and private files out of the web root, and treat anything sensitive that was listed as already seen.
# Apache (.htaccess)
Options -Indexes
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my site