Technical
Critical

Home page blocked by robots.txt

This error appears when your website's robots.txt file prevents Google from crawling the homepage. Here's what it means and how to fix it so search engines can access it again.

What this error means

The robots.txt is a text file at the root of the domain, at yourdomain.com/robots.txt, that tells crawlers which paths they can visit and which they can't. When a rule in that file covers the homepage URL, Google doesn't crawl it, so it doesn't read its content or anything in its code. The page can stay in Google's index, the list of pages it shows in search results. If other sites link to it, it appears without a description. And adding a noindex tag doesn't remove it, because Google doesn't crawl the page and never gets to see that tag. Ruk Audit flags it when its crawler can't access the homepage because of a robots.txt rule, usually from the "User-agent: *" group, which applies to any crawler without its own group. If you have a group for Googlebot or Bingbot that lets them through, it doesn't flag it, because each search engine follows only the group with its name. And if the file blocks the whole site, you'll see the "Whole site blocked by robots.txt" error instead of this one. It's worth looking at how the rule is written. "Disallow: /" blocks the whole site, while "Disallow: /$" blocks only the root and lets the rest be crawled. This error usually shows up when someone adds a rule like that to close off the homepage without thinking through what it involves, when a pattern with an asterisk matches the root without anyone expecting it, or when a plugin or the CMS itself regenerates the file and overwrites your changes.

Why fixing a homepage blocked by robots.txt matters

The homepage is usually the page with the most inbound links and the one that holds a good share of the domain's authority. If Google can't crawl it, all that weight goes to waste. Fixing it usually takes a few minutes, because changing one line of the robots.txt is almost always enough.

Impact on SEO rankings

Without crawling the homepage, Google can't assess its content, title or headings, so it has nothing to rank it on for the searches you care about.

Crawling and indexing obstacles

Since Google doesn't crawl the page, it doesn't see the links from it to the rest of the site either. It can discover those pages through the sitemap or external links, but you lose the most direct route for it to reach your main sections.

Negative signals for site quality

A blocked homepage is usually a configuration oversight. If the robots.txt that blocks it came from development, other rules are probably also blocking pages that should be open.

How to fix it step by step

If this error showed up in your audit, here are the steps to leave it behind.

Step 1

Find the rule that blocks the homepage

Ruk Audit has flagged that the homepage is blocked by robots.txt, and now you need to find out which line causes it. Open yourdomain.com/robots.txt in your browser and check the Disallow rules that apply to Google, the ones under "User-agent: *" or "User-agent: Googlebot". If there's a group for Googlebot, Google follows only that one and ignores the general one. The usual culprits are "Disallow: /$" and any pattern with an asterisk that could match the root.

Step 2

Fix or remove the rule

Edit the file from your hosting control panel, via FTP or from the SEO plugin that manages it. If the rule has no clear purpose, delete it. If you meant to block other parts of the website with it, replace it with specific paths, such as "Disallow: /admin/", that leave the root out. Before saving, go through the whole file to confirm that no other Disallow rule still covers the root.

Step 3

Check what is regenerating the file

If the change disappears after a while, an SEO plugin or the CMS itself is probably rewriting the robots.txt. Look in its settings for the option that edits the file and make the fix there, so the next update doesn't bring the block back.

Step 4

Validate the change in Google Search Console

In Google Search Console, open the robots.txt report to see which version of the file Google has found, and request a recrawl if it still shows the old one. Then run the homepage through URL Inspection and use Test live URL, because the default view shows the last crawl and may still say it's blocked.

Does your site have this problem?

Audit your website for free and discover if this and other SEO errors are affecting your ranking.

Get a free audit. Over 3033 reports delivered.
Hey, wait a moment
To analyze a website, you first need to create an account in the application. Click the button below to go to the registration screen.
Create account