Access & crawling · 4 checks

robots.txt check

Find out whether your robots.txt can be read, which rules apply to your page, and whether Googlebot and Bingbot are allowed to fetch it.

Check your page

Included in the free scan of 85 SEO and GEO checks.

What this checks

robots.txt is a plain-text file at the root of a host that tells crawlers which paths they may fetch. It controls crawling, not indexing: a blocked page can still appear in results with just its address if other pages link to it.

Rules are grouped by user agent. A crawler follows the most specific group that names it, and inside that group the longest matching Allow or Disallow wins.

Crawlerrobots.txt: may I fetch?noindex: may I show it?Search results
robots.txt is read before the page is fetched; noindex is read only after it is fetched.

The 4 checks on this page

Each check has its own result in your report. “Learn more” in the report opens the matching card here.

ROB-001

robots.txt retrieval

Fetches /robots.txt for the host. A 404 means there is no file, which allows everything.

  • Pass Read with 200, or a confirmed 404
  • Not measured Another status, or the file was cut off
ROB-002

robots.txt syntax and directives

Parses the lines we could read and lists directives that crawlers do not all support, such as Crawl-delay.

  • Pass Parsed; directives that not all crawlers support are listed as notes
ROB-003

Googlebot path rule

Matches the page address against the rules that apply to Googlebot.

  • Pass Googlebot may fetch the page
  • Problem Googlebot is disallowed on a public page
ROB-004

Bingbot path rule

Does the same for Bingbot, which also feeds Bing Copilot answers.

  • Pass Bingbot may fetch the page
  • Problem Bingbot is disallowed on a public page

Examples

Passes: Block only a private area
User-agent: *
Disallow: /admin/

Sitemap: https://example.com/sitemap.xml
Flagged: Blocks the whole site for every crawler
User-agent: *
Disallow: /

How to fix it

WordPress

Check Settings › Reading: “Discourage search engines from indexing this site” must be off on a live site. Yoast and Rank Math let you edit robots.txt from their tools page.

Shopify

Edit robots.txt.liquid in your theme only if you need extra rules; Shopify’s default file already blocks checkout and admin paths.

Next.js

Generate the file from app/robots.ts so it ships with each deploy, and check that preview deployments are not the ones being indexed.

Plain HTML

Place robots.txt at the root of every host you serve (www and the bare domain are separate hosts) and return it with status 200 and text/plain.

Check your fix

  1. Open https://your-host/robots.txt in a browser: it should load as plain text.
  2. Use the robots.txt report in Google Search Console to see the version Google fetched.
  3. Run this check again on the page you care about.

Questions

Does Disallow keep a page out of Google?

No. It stops crawling. To keep a page out of results, allow crawling and add noindex.

My robots.txt returns 403. Is that bad?

For crawling it means “no rules”, so crawlers may fetch everything. If that is not what you want, serve a real file with status 200.

Do I need a robots.txt at all?

No. Without one, crawlers may fetch everything. Add one when you need to block a path or declare a sitemap.

Sources

Related