{
    "title": "robots.txt answers with a server error",
    "description": "When /robots.txt gives a 5xx error, Google stops crawling the whole site for a while, and other bots may treat every page as blocked.",
    "url": "https://ursy.com/issues/robots-txt-server-error/",
    "canonical": "https://ursy.com/issues/robots-txt-server-error/",
    "markdown": "https://ursy.com/issues/robots-txt-server-error/index.md",
    "json": "https://ursy.com/issues/robots-txt-server-error/index.json",
    "published": "2026-11-29T21:57:23+00:00",
    "updated": "2026-11-30T12:53:03+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/robots-txt-server-error/",
    "start_here": {
        "page": "https://ursy.com/issues/robots-txt-server-error/",
        "markdown": "https://ursy.com/issues/robots-txt-server-error/index.md",
        "json": "https://ursy.com/issues/robots-txt-server-error/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": "robots-txt-server-error",
        "problem": "robots.txt answers with a server error",
        "summary": "When /robots.txt gives a 5xx error, Google stops crawling the whole site for a while, and other bots may treat every page as blocked.",
        "status": "Live",
        "priority": "high",
        "category": "robots",
        "category_title": "robots.txt",
        "why_it_matters": [
            "Every well-behaved crawler asks for /robots.txt before it fetches anything else. The robots.txt standard (RFC 9309) says that when the file cannot be reached because of a server error, a crawler must assume it may fetch nothing. Google documents that it stops crawling the site for 12 hours, then uses the last copy it could read for up to 30 days.",
            "So one failing file can stop new and changed pages being crawled across the whole site, for search engines and AI bots alike. Google treats 429 (too many requests) the same way here. The cause is often a firewall or bot shield that answers bots with an error, or a plugin that builds robots.txt and crashes."
        ],
        "how_to_fix": [
            "Check the status your server sends for /robots.txt. Make it answer 200 with your rules, or 404 if you have no rules. If a firewall or bot shield sends the error, add an exception so /robots.txt is always served.",
            "If a plugin builds the file, switch it off for a moment to see whether the error stops, or upload a plain robots.txt file instead. Check again with the Robots.txt Checker."
        ],
        "steps": [
            "Check the status of /robots.txt with the Robots.txt Checker.",
            "Find what sends the error: the server, a plugin or a firewall.",
            "Make the address answer 200, or 404 if you have no rules.",
            "Check again, and watch the crawl stats report in Google Search Console."
        ],
        "check_it_is_fixed": "Run the URSY.com Robots.txt Checker (/robots-txt-checker/) a few times over a day. It should get 200 and your rules every time; then watch the crawl stats report in Google Search Console.",
        "found_by": [
            {
                "tool": "robots-txt-checker",
                "name": "Robots.txt Checker",
                "status": "Live",
                "page": "https://ursy.com/robots-txt-checker/",
                "card": "https://ursy.com/robots-txt-checker.json"
            },
            {
                "tool": "ai-bot-checker",
                "name": "AI Bot Checker",
                "status": "Live",
                "page": "https://ursy.com/ai-bot-checker/",
                "card": "https://ursy.com/ai-bot-checker.json"
            },
            {
                "tool": "indexability-checker",
                "name": "Can Google Index This Page?",
                "status": "Live",
                "page": "https://ursy.com/indexability-checker/",
                "card": "https://ursy.com/indexability-checker.json"
            },
            {
                "tool": "crawl-trap-checker",
                "name": "Crawl Trap Checker",
                "status": "Live",
                "page": "https://ursy.com/crawl-trap-checker/",
                "card": "https://ursy.com/crawl-trap-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/robots-txt-server-error",
        "source": {
            "url": "https://www.rfc-editor.org/rfc/rfc9309",
            "title": "RFC 9309: Robots Exclusion Protocol"
        },
        "cite": "robots.txt answers with a server error. URSY.com. https://ursy.com/issues/robots-txt-server-error/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/robots-txt-server-error/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/robots-txt-server-error/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/robots-txt-server-error/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/robots-txt-server-error/#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/robots-txt-server-error/#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/robots-txt-server-error/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/robots-txt-server-error/#wordpress"
        },
        {
            "level": 3,
            "text": "Your server or hosting",
            "id": "your-server-or-hosting",
            "url": "https://ursy.com/issues/robots-txt-server-error/#your-server-or-hosting"
        },
        {
            "level": 3,
            "text": "Your CDN (for example Cloudflare)",
            "id": "your-cdn-for-example-cloudflare",
            "url": "https://ursy.com/issues/robots-txt-server-error/#your-cdn-for-example-cloudflare"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/robots-txt-server-error/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/robots-txt-server-error/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/robots-txt-server-error/#questions"
        },
        {
            "level": 3,
            "text": "Is a 404 for robots.txt a problem?",
            "id": "is-a-404-for-robots-txt-a-problem",
            "url": "https://ursy.com/issues/robots-txt-server-error/#is-a-404-for-robots-txt-a-problem"
        },
        {
            "level": 3,
            "text": "How long does the damage last?",
            "id": "how-long-does-the-damage-last",
            "url": "https://ursy.com/issues/robots-txt-server-error/#how-long-does-the-damage-last"
        }
    ],
    "links": [
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "robots.txt",
            "url": "https://ursy.com/wiki/robots-txt/",
            "internal": true
        },
        {
            "text": "search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "CDN",
            "url": "https://ursy.com/wiki/cdn/",
            "internal": true
        },
        {
            "text": "RFC 9309: Robots Exclusion Protocol",
            "url": "https://www.rfc-editor.org/rfc/rfc9309",
            "internal": false
        }
    ],
    "words": 758,
    "text": "When /robots.txt gives a 5xx error, Google stops crawling the whole site for a while, and other bots may treat every page as blocked. Why it matters Every well-behaved crawler asks for /robots.txt before it fetches anything else. The robots.txt standard (RFC 9309) says that when the file cannot be reached because of a server error, a crawler must assume it may fetch nothing. Google documents that it stops crawling the site for 12 hours, then uses the last copy it could read for up to 30 days. So one failing file can stop new and changed pages being crawled across the whole site, for search engines and AI bots alike. Google treats 429 (too many requests) the same way here. The cause is often a firewall or bot shield that answers bots with an error, or a plugin that builds robots.txt and crashes. How to fix it Check the status your server sends for /robots.txt. Make it answer 200 with your rules, or 404 if you have no rules. If a firewall or bot shield sends the error, add an exception so /robots.txt is always served. If a plugin builds the file, switch it off for a moment to see whether the error stops, or upload a plain robots.txt file instead. Check again with the Robots.txt Checker. Check the status of /robots.txt with the Robots.txt Checker. Find what sends the error: the server, a plugin or a firewall. Make the address answer 200, or 404 if you have no rules. Check again, and watch the crawl stats report in Google Search Console. What the problem looks like GET /robots.txt HTTP/1.1 Host: www.example.com HTTP/1.1 503 Service Unavailable Retry-After: 3600 A 5xx answer for robots.txt makes Google pause crawling the whole site, and other bots may treat every page as blocked. What it looks like fixed HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Sitemap: https://www.example.com/sitemap.xml robots.txt answers 200 with plain text rules. If you have no rules, a 404 is fine too. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: My website [your website address] runs on [your platform, e.g. WordPress on nginx behind Cloudflare]. A check says /robots.txt answers with a server error (5xx), which can make Google pause crawling my whole site. First fetch [your website address]/robots.txt as a browser and as a bot, and show me the status codes and headers (or ask me to paste them). Explain in plain words what is most likely sending the error: the server, a plugin that builds the file, or a firewall or CDN rule. Then give me the simplest fix that makes /robots.txt always answer 200 with my current rules, for example a static robots.txt file in the site root or an exception in the firewall. Rules: keep my existing rules exactly, back up anything you change, and do not add new Disallow lines. Give me the exact steps or file, and where it goes. Finally, tell me to re-check with the URSY.com Robots.txt Checker at ursy.com/robots-txt-checker/. Fix it on your platform WordPress WordPress builds robots.txt with PHP, so a broken plugin can make it fail. Upload a plain robots.txt file to the site root: the server then sends it without running WordPress. Your server or hosting Check the error log for requests to /robots.txt. Make sure no rewrite, rate limit or maintenance rule sends it to a script that can fail. Your CDN (for example Cloudflare) Check your CDN security events for /robots.txt and add an exception so no firewall, challenge or rate limit rule applies to it. Do not let the CDN cache an error answer for it. Check it is fixed Run the URSY.com Robots.txt Checker (/robots-txt-checker/) a few times over a day. It should get 200 and your rules every time; then watch the crawl stats report in Google Search Console. Official source RFC 9309: Robots Exclusion Protocol Questions Is a 404 for robots.txt a problem? No. A 404 tells crawlers you have no rules, so they may crawl everything. Only server errors and refusals cause trouble. How long does the damage last? Google documents that it stops crawling for 12 hours after a robots.txt server error, then may use its last good copy for up to 30 days while errors continue. Crawling returns to normal once the file answers properly again.",
    "source": "https://ursy.com/issues/robots-txt-server-error/"
}