Skip to the content
Start free

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.

Medium priority robots.txt

Why it matters #

robots.txt is public by design: it is the one file every bot must be able to read. 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 #

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 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 it looks like, and fixed #

The problem
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.

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 #

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.

Your instruction for the AI
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/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

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

Look for password protection, IP allow lists or user agent blocks that cover the site root, and add an exception for /robots.txt.

Your CDN (for example Cloudflare)

Add a rule in your CDN that skips bot challenges and blocks for the exact path /robots.txt.

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 #

Google Crawling Infrastructure: How Google interprets the robots.txt specification

Questions #

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?

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.

More problems in robots.txt

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com