Anyone can browse the uploads folder
Folder listing is on, so anyone can see every file ever uploaded, including ones you never linked to.
Why it matters #
With directory listing on, opening /wp-content/uploads/ shows a list of every folder and file. That includes drafts, old price lists, invoices or exports that were uploaded but never linked from a page.
Search engines and AI crawlers can find and read those files too, and copies may stay in their indexes long after you remove them.
How to fix it #
Turn off directory listing at the server: "Options -Indexes" on Apache, "autoindex off" on nginx, or ask your host. As a quick fix, put an empty index.php in the folder.
Then look through the uploads for files that should not be public and remove them. Check again with the WordPress Security Checker.
What it looks like, and fixed #
Index of /wp-content/uploads/2024/03
oak-bench.jpg
trade-price-list-2024.pdf
customer-export.csv
A folder listing shows every file, including ones never linked from a page.
# In .htaccess or the virtual host:
Options -Indexes
The folder address now answers 403, while each image still loads by its own address. On nginx the setting is autoindex off.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Help me stop folder browsing on [your website address], a WordPress site on [your host, e.g. Apache shared hosting or nginx]. A checker says anyone can open /wp-content/uploads/ and see a list of every file ever uploaded. First check: ask me what that address shows in a private window, and whether the server is Apache or nginx. Explain plainly what is open. Then give me the exact change: Options -Indexes for Apache or autoindex off for nginx, plus an empty index.php as a quick fix. Rules: back up .htaccess or the server configuration first, block only the folder listings, never block the files themselves, so images and downloads keep loading, and keep all other rules. Then help me review the uploads: give me a way to list files that look private, such as spreadsheets, exports, invoices and price lists, so I can decide what to remove. Give exact lines and where they go. Finally, tell me to re-check with the URSY.com WordPress Security Checker at ursy.com/wordpress-security-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
As a quick fix, put an empty index.php file in wp-content/uploads and its year folders. Some security plugins can switch off listings for you.
Your server or hosting
On Apache add Options -Indexes; on nginx make sure autoindex is off. On shared hosting, look for a directory privacy or indexes setting, or ask your host.
Check it is fixed #
Open /wp-content/uploads/ in a private window: it should answer 403 or show an empty page. Check that images on your pages still load, and run the WordPress Security Checker again.
Official source #
Questions #
Will this stop my images showing?
No. It only stops the list of files. Each picture still loads from its own address.
Private files are already in search results. What now?
Delete or move the files first, so their addresses answer 404 or 410. Then you can ask Google to drop them quickly with the Removals tool in Search Console.
More problems in Security and HTTPS
- A form sends its data over plain http High priority
- Hidden instructions aimed at AI assistants High priority
- http:// does not redirect to https:// High priority
- Mixed content: files loaded over plain http High priority
- The certificate does not cover this address High priority
- The certificate has expired or is not valid yet High priority
- The certificate is not trusted by browsers High priority
- The https page redirects back to http High priority