---
title: "robots.txt cannot be read by bots"
description: "/robots.txt refuses bots or gives an unusual status, so crawlers cannot read your rules and may treat the site as having none."
url: https://ursy.com/issues/robots-txt-refused/
updated: 2026-11-30T12:53:03+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/robots-txt-refused/
---

# robots.txt cannot be read by bots

> /robots.txt refuses bots or gives an unusual status, so crawlers cannot read your rules and may treat the site as having none.

/robots.txt refuses [bots](https://ursy.com/wiki/bot-web-robot/) or gives an unusual status, so crawlers cannot read your rules and may treat the site as having none.

## Why it matters {#why-it-matters}

[robots.txt](https://ursy.com/wiki/robots-txt/) is public by design: it is the one file every bot must be able to read. [Google](https://ursy.com/wiki/google/) documents that a 4xx answer, including 401 and 403, counts as if there were no robots.txt, so it may crawl every page. Other bots may do the same, or stop.

That means rules you wrote, such as an AI training opt-out or a block on filter pages, are not read by bots that get the same refusal. Tools that check your site cannot read them either.

## How to fix it {#how-to-fix-it}

Let every visitor read /robots.txt. Look for a firewall rule, a bot shield, a log-in or a security plugin that protects the root of the site, and add an exception for this one file. It should answer 200 with your rules, or 404 if you have none.

Check it with the Robots.txt Checker, and look at the robots.txt report in [Google Search Console](https://ursy.com/wiki/google-search-console/) to see what Google received.

1. Open /robots.txt in a private browser window and note the status.
2. Find the rule or plugin that refuses it.
3. Add an exception so the file is open to everyone.

### What the problem looks like {#what-the-problem-looks-like}

```
GET /robots.txt HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (compatible; bingbot/2.0)

HTTP/1.1 403 Forbidden
```

Bots are refused robots.txt itself, so they cannot read your rules and may act as if there are none.

### What it looks like fixed {#what-it-looks-like-fixed}

```
# .htaccess: the site is protected, but robots.txt stays open to everyone
<Files "robots.txt">
  Require all granted
</Files>
```

An exception for the one file lets every bot read the rules, while the rest of the protection stays in place.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/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. Apache with a WordPress security plugin]. A check says bots are refused when they ask for /robots.txt (401, 403 or a similar status), so they cannot read my rules. First fetch [your website address]/robots.txt as a normal browser and as a bot such as bingbot, and compare the answers (or ask me to paste them). Tell me in plain words what refuses the file: password protection, a firewall, a CDN, a security plugin or a maintenance mode. Then give me the smallest exception that makes this one file answer 200 to every visitor, with my current rules unchanged. Rules: back up any configuration first, do not open any other address, keep all other protection as it is, and do not change the rules inside robots.txt. Give me the exact code or settings and where they go. Finally, tell me to re-check with the URSY.com Robots.txt Checker at ursy.com/robots-txt-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

Check security plugins and maintenance or coming soon plugins: they often protect every address, robots.txt included. Add robots.txt to their allowed list, or upload a static robots.txt file.

### Your server or hosting {#your-server-or-hosting}

Look for password protection, IP allow lists or [user agent](https://ursy.com/wiki/user-agent/) blocks that cover the site root, and add an exception for /robots.txt.

### Your CDN (for example Cloudflare) {#your-cdn-for-example-cloudflare}

Add a rule in your [CDN](https://ursy.com/wiki/cdn/) that skips bot challenges and blocks for the exact path /robots.txt.

## Check it is fixed {#check-it-is-fixed}

Run the URSY.com Robots.txt Checker (/robots-txt-checker/) again. It should get 200 and show your rules; the robots.txt report in Google Search Console should show the same.

## Official source {#official-source}

[Google Crawling Infrastructure: How Google interprets the robots.txt specification](https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec)

## Questions {#questions}

### Is it safe to make robots.txt public? {#is-it-safe-to-make-robots-txt-public}

Yes. It is public by design. Do not list secret addresses in it, because anyone can read it.

### What does Google do when robots.txt answers 403? {#what-does-google-do-when-robots-txt-answers-403}

Google documents that it treats a 4xx answer as if there were no robots.txt, so it may crawl every page, including ones you meant to block.

---

**Cite this page:** robots.txt cannot be read by bots. URSY.com. Updated 30 November 2026. https://ursy.com/issues/robots-txt-refused/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[robots.txt cannot be read by bots](https://ursy.com/issues/robots-txt-refused/), URSY.com`. One section: add its id, for example https://ursy.com/issues/robots-txt-refused/#section-id (every heading above has one).

Section links: https://ursy.com/citations/18/#p-5640 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/robots-txt-refused/
- As JSON: https://ursy.com/issues/robots-txt-refused/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
