seoaudit.com.auCheck a site

Fix 2 of 20Red on its ownUpdated

robots.txt blocks Google from this page

The robots.txt file tells crawlers where they may go. A rule left over from before launch can keep Google off the whole site. A missing or broken file is a smaller problem, but worth fixing.

What we look for

We fetch /robots.txt on the site and read it the way a crawler does. If a Disallow rule covers the page you checked, that is a problem, and a critical one: the result is red. If the file is missing, that is a warning. If it answers with a server error, that is a problem too, because Google treats a broken robots.txt as “stay out” until it is fixed.

Why it matters

Google asks for robots.txt before it crawls anything. A line reading Disallow: / under User-agent: * shuts every crawler out of the whole site, and pages Google cannot crawl rarely rank for anything. The file is also where you point search engines at your sitemap, which is why a missing one is still a warning.

A site does not need a robots.txt to be crawled. It needs one that does not block the pages you want found.

How to fix it

WordPress. WordPress makes a robots.txt for you, and SEO plugins can edit it: in Yoast it is under Tools, then File editor; in Rank Math it is under General Settings. Remove any Disallow: / line. If a real file called robots.txt sits in the site’s root folder on the server, it overrides WordPress’s own, so check there too.

Squarespace. Squarespace writes its own robots.txt and does not let you edit it. It blocks a few internal addresses and never your pages, so a problem here usually means the site is not public yet. Check Settings, then Site Availability.

Wix. Open Marketing & SEO, then SEO Tools, then the Robots.txt Editor. Remove the rule, or reset the file to Wix’s default.

Shopify. Shopify writes a sensible default. If someone customised it, there is a robots.txt.liquid template under Online Store, Themes, Edit code. Remove the rule, or delete the template to go back to the default.

A custom-built site. Edit the file in the site’s root. The classic cause is a staging site that blocked everything, copied to production with the file intact. If the file returns a server error, fix the error first.

Check it worked

Run the check again. Then in Search Console, open Settings, then robots.txt, to see what Google last fetched and whether it could read it.

Read it from Google

Other tools call this

  • Google Search Console: Blocked by robots.txt, Indexed, though blocked by robots.txt
  • Lighthouse and PageSpeed Insights: robots.txt is not valid
  • Semrush: Blocked internal resources in robots.txt, Robots.txt file has format errors
  • Screaming Frog: Blocked by Robots.txt

Every finding, and what each tool calls it

All guides, fixes and checklists