{
    "title": "Anyone can browse the uploads folder",
    "description": "Folder listing is on, so anyone can see every file ever uploaded, including ones you never linked to.",
    "url": "https://ursy.com/issues/wordpress-uploads-listing/",
    "canonical": "https://ursy.com/issues/wordpress-uploads-listing/",
    "markdown": "https://ursy.com/issues/wordpress-uploads-listing/index.md",
    "json": "https://ursy.com/issues/wordpress-uploads-listing/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/wordpress-uploads-listing/",
    "start_here": {
        "page": "https://ursy.com/issues/wordpress-uploads-listing/",
        "markdown": "https://ursy.com/issues/wordpress-uploads-listing/index.md",
        "json": "https://ursy.com/issues/wordpress-uploads-listing/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "wordpress-uploads-listing",
        "problem": "Anyone can browse the uploads folder",
        "summary": "Folder listing is on, so anyone can see every file ever uploaded, including ones you never linked to.",
        "status": "Live",
        "priority": "medium",
        "category": "security",
        "category_title": "Security and HTTPS",
        "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": [
            "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."
        ],
        "steps": [],
        "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.",
        "found_by": [
            {
                "tool": "wordpress-security-checker",
                "name": "WordPress Security Checker",
                "status": "Live",
                "page": "https://ursy.com/wordpress-security-checker/",
                "card": "https://ursy.com/wordpress-security-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/wordpress-uploads-listing",
        "source": {
            "url": "https://developer.wordpress.org/advanced-administration/security/hardening/",
            "title": "WordPress.org: Hardening WordPress"
        },
        "cite": "Anyone can browse the uploads folder. URSY.com. https://ursy.com/issues/wordpress-uploads-listing/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#wordpress"
        },
        {
            "level": 3,
            "text": "Your server or hosting",
            "id": "your-server-or-hosting",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#your-server-or-hosting"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#questions"
        },
        {
            "level": 3,
            "text": "Will this stop my images showing?",
            "id": "will-this-stop-my-images-showing",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#will-this-stop-my-images-showing"
        },
        {
            "level": 3,
            "text": "Private files are already in search results. What now?",
            "id": "private-files-are-already-in-search-results-what-now",
            "url": "https://ursy.com/issues/wordpress-uploads-listing/#private-files-are-already-in-search-results-what-now"
        }
    ],
    "links": [
        {
            "text": "Search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "AI crawlers",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "WordPress.org: Hardening WordPress",
            "url": "https://developer.wordpress.org/advanced-administration/security/hardening/",
            "internal": false
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        }
    ],
    "words": 555,
    "text": "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 the problem looks like 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. What it looks like fixed # 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, and fill in the words in square brackets: 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/. 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 WordPress.org: Hardening WordPress 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.",
    "source": "https://ursy.com/issues/wordpress-uploads-listing/"
}