Skip to content
Deployment hardening

Directory listing enabled on your web server

Directory listing means a folder URL without an index page shows a clickable list of its files. Turn it off in your server or host configuration and remove any files from the public folder that should never have been published.

Check your app free, first fix free
By Brennan ZamboUpdated
In short

Listings turn an unguessable filename into an obvious one: backups, exports, uploads and old builds become browsable. Most modern hosts disable listing by default, but custom Express, nginx or Apache setups may not. Check folder URLs on your own app, disable autoindex, and clean the public directory. ProofForge does not run a dedicated check for this.

What it looks like

Visit a folder path on your app, such as /uploads/ or /assets/, with a trailing slash. If you see a page titled "Index of /uploads" with a list of filenames, sizes and dates, listing is enabled. A 403, a 404, or your app's normal page shell means it is not, at least for that folder.

Typical static hosts behind modern AI builders usually do not list directories. The risk shows up when an app is moved to a self-managed server, uses an older Express static setup with a listing middleware, or serves a folder through nginx or Apache with autoindex enabled.

Why it matters

Listing does not expose anything that was not already public, but it removes the guesswork. Database exports, customer uploads, zipped backups and stale build folders become one click away. The right fix has two parts: stop the listing, and stop publishing files that should not be public.

Turn it off

nginx:

nginx
location / {
    autoindex off;
}

Apache, in the site config or .htaccess:

apache
Options -Indexes

Express: serve static files with express.static, which does not list directories, and remove any serve-index middleware.

ts
app.use(express.static("dist", { dotfiles: "deny", index: false }));

For managed hosts, look for a documented setting rather than assuming; if the host never lists directories, the cleanup step is still worthwhile.

Clean the public folder

List what your deployment actually publishes. Move user uploads to private storage served through an authorized route, delete exports and backups, and make sure your build only copies the intended output. Then recheck the folder URLs on the live domain, signed out.

What ProofForge does and does not check here

ProofForge does not currently perform a dedicated directory listing check. This is a manual guide, not a claim of detection: a clean ProofForge report says nothing either way about this issue. The public scan covers the areas listed on the methodology page, such as exposed files, bundle secrets, security headers, CORS and selected database access. Use the steps above on an app you own or have permission to test, and keep your own notes as evidence.

Turn the check into a release decision

Keep a small record of the production URL, the time you checked it, the exact finding and the action you took. A local preview and a deployed application can have different environment variables, response headers and database projects. After a repair, deploy the intended version and check the public address again. Do not assume that changing a repository file changed the live system.

Read coverage as carefully as the score. A timed-out asset, an ambiguous backend configuration or a request that could not safely establish access should remain unknown. It should not disappear from your release notes merely because there is no red finding. If a check was not completed, decide who will review it and what additional evidence is needed.

ProofForge's free report includes the first fix. The $9 Fix Report unlocks all findings' available repair guidance and builder prompts, with a PDF and private report link. Fix + Guard costs $29 once and adds builder rules, on-demand deploy-hook scans for 30 days and four weekly rechecks you start yourself. These are different deliverables, not different promises that an application is completely secure.

Keep private report URLs out of public issues and commits. If you need shareable evidence, use the owner-verification and publication flow for an eligible receipt. A signature protects the recorded assessment against undetected changes; it does not make the assessment exhaustive, prove a business outcome, or show that a later deployment still matches an earlier result.

Questions builders ask

If listing is off, are my files private?
No. Anyone who knows or guesses the exact URL can still fetch a public file. Remove files that should not be public.
Do Vercel or Netlify list directories?
Their typical static hosting does not show directory listings, but check your actual deployment because custom servers and rewrites vary.
Does ProofForge detect directory listing?
Not as a dedicated check. It checks a short list of sensitive file paths such as .env and .git, described on the methodology page.

Continue with a related guide

Sources

Read-only, about a minute

Scan your app free

See what your live app ships to every visitor, with the first fix free. A clean scan is not a full audit. Run it only on an app you own or have permission to test.

Scan your app free
All guides