Nov 23, 2026
A single line in a small text file can make an entire website invisible to Google. It happens more often than most business owners expect. A developer blocks search engines while the site is being built, the launch goes ahead, and nobody remembers to remove the instruction. Weeks later, the pages are missing from search and the enquiries have dried up.
The file responsible is robots.txt. It is simple, powerful and easy to get wrong. This guide explains what robots.txt does, how to check whether it is blocking Google, the most common mistakes behind crawl problems, and how to fix them step by step.
What Robots.txt Actually Does?
Robots.txt is a plain text file placed in the root of your website, for example at yourdomain.com/robots.txt. It gives instructions to crawlers, such as Googlebot, about which parts of the site they may or may not request. It is a crawling control, and that distinction matters.
Blocking a page in robots.txt stops Google from fetching it, but it does not guarantee that the page will stay out of search. If other sites or pages link to a blocked URL, Google can still list the address in results, usually with little or no description, because it could not read the content. If you want a page kept out of the index, the correct tool is a noindex instruction, and Google must be able to crawl the page to see it. Blocking a page in robots.txt and adding noindex at the same time therefore defeats the purpose.
Signs That Robots.txt May Be Blocking Google
Several symptoms point toward a crawling problem. Your new website or new pages never appear in search, even after weeks. Search Console shows URLs with the status “Blocked by robots.txt” or “Indexed, though blocked by robots.txt”. Search results for your pages show a bare URL with a note that no description is available. Or you notice a sudden fall in organic traffic after a redesign, migration or plugin change.
If you recognise any of these, check your robots.txt file before looking at anything more complicated. It takes only a minute, and it is one of the most common causes of unexplained indexing problems.
How to Find Crawl Issues Caused by Robots.txt?
Step 1: Open the file in your browser
Type your domain followed by /robots.txt into the address bar. Read every line. A file that contains “Disallow: /” under “User-agent: *” tells all crawlers not to crawl any part of the site. That single combination is the classic accidental block.
Also check that the file exists at the root of the correct domain version. A robots.txt file only applies to the exact host where it sits, so the www and non-www versions, and any subdomains, each need to be considered separately.
Step 2: Use Google Search Console
Search Console’s robots.txt report shows which robots.txt files Google found for your site, when they were last fetched and whether there were any errors or warnings. If Google could not fetch the file, or fetched an older version, you will see it here.
Then open the URL Inspection tool and test important pages. It will tell you whether crawling is allowed and, if not, which rule is responsible. Look at the Pages report too, and review the statuses mentioning robots.txt.
Step 3: Check what the file returns
The way your server responds when Google requests robots.txt matters. If the file is missing and the server returns a “not found” response, Google generally treats this as having no restrictions. If the server returns a temporary error, such as a 5xx response, Google may pause crawling the site for a while, because it cannot be sure what is allowed. A file that regularly times out or errors can therefore harm crawling even though its contents look fine.
Step 4: Crawl the site with an SEO tool
Run a crawler such as Screaming Frog or Sitebulb using the Googlebot user agent. These tools report which URLs are blocked by robots.txt, which makes it easy to spot sections that should be open but are not. Comparing the blocked list with your list of important pages quickly reveals mistakes.
The Most Common Robots.txt Mistakes
A leftover block from development or staging
This is the number one cause. Staging sites are often blocked on purpose. When the site goes live, the same file, or the same CMS setting, is carried across. The result is a live website that tells Google to stay away.
The “discourage search engines” setting in the CMS
WordPress has a setting that asks search engines not to index the site. Depending on the version and plugins, it can alter robots.txt or add a noindex signal. If you migrate a site or restore a backup, this setting can be switched on again without warning. It is worth checking after every launch or migration.
Blocking important folders or file types
Sometimes an over-broad rule stops Google from reaching key sections, such as a whole blog folder, product directory or service area. A rule like “Disallow: /blog” blocks every URL that begins with that path, including pages you want to rank.
Blocking CSS and JavaScript
If Google cannot fetch the scripts and style files that control how your pages look and work, it may not understand the layout or the content properly. Allow Google to access the resources needed to render your pages, especially on sites that rely on JavaScript.
Syntax and wildcard errors
A small typo can change the meaning of a rule. Paths are case sensitive, a missing slash can change which URLs a rule matches, and wildcard characters can match far more than intended. Each rule should be written carefully and tested against real URLs.
Conflicting Allow and Disallow rules
When rules overlap, Google applies the most specific one. This can produce surprising results if you are not sure which rule is longer or more precise. Keep the file simple and test the outcome on sample URLs.
Putting the file in the wrong place
Robots.txt must sit at the root of the host and be named exactly “robots.txt”. A copy placed in a subfolder is ignored. It also needs to be reachable on the specific protocol and subdomain you want it to cover.
Blocking with security tools instead
Sometimes the robots.txt file is fine, but a firewall, bot-protection service or CDN is blocking Googlebot at the server level. In this case, Search Console may report fetch errors even though the file looks open. If you use a service such as Cloudflare or a hosting-level firewall, check that verified Googlebot traffic is allowed.
How to Fix a Robots.txt Problem?
Remove or correct the blocking rule
If the file contains an unwanted blanket block, delete it or replace it with only the restrictions you truly need. A very simple, safe file for many sites allows crawling and points to the sitemap:
User-agent: *
Disallow:
Sitemap: https://www.example.com/sitemap.xml
Replace the sitemap address with your own. If you do need to restrict certain areas, such as admin pages or internal search results, list only those paths and leave everything else open.
Fix the setting at its source
If your CMS is generating the file, correct the setting there instead of editing a file that will be overwritten. On WordPress, check the visibility setting and your SEO plugin. On Shopify, robots.txt is generated by the platform and can be customised through the theme template, so make changes there. On custom or hosted sites, edit the file on the server or ask your developer.
Keep noindex and robots.txt consistent
Do not block a URL in robots.txt if you want Google to see a noindex tag on it. Let Google crawl the page, read the noindex and drop it from the index. Once it is gone, you can decide whether blocking is still needed.
Fix server errors on the file
Make sure robots.txt loads quickly and returns a normal successful response. If your server or firewall causes errors, resolve them, since persistent failures can limit how much Google crawls.
Check that Googlebot is not blocked elsewhere
Review firewall and CDN logs for blocked requests from Google’s crawlers. Verify genuine Googlebot traffic through reverse DNS lookup instead of trusting the user agent alone, then allow it through.
Test before you publish
After editing the file, test your most important URLs, including the homepage, service pages, product pages and blog posts. Confirm that each one is allowed. Then save the file and check that it loads correctly at the live address.
Ask Google to recrawl
Google caches robots.txt, often for up to a day, so changes are not seen instantly. After fixing the file, use the robots.txt report in Search Console to request a recrawl if it is offered, and use URL Inspection to request indexing for your key pages. Submit your XML sitemap again and monitor the Pages report as blocked statuses clear over the coming days and weeks.
Why This Matters Beyond Organic Search?
Crawl access affects more than SEO. If you run paid campaigns, your landing pages must be accessible to Google’s advertising crawler, and a restrictive robots.txt can cause disapprovals or poor landing page assessments. Google’s ads crawler follows its own rules, so a blanket block may need specific handling. If you spend money on PPC services, it is worth confirming that your robots.txt is not working against your own campaigns.
The same applies to social sharing. When someone shares your link on a social platform, the platform’s crawler fetches the page to build the preview with the title and image. A robots.txt file that blocks these crawlers can leave links looking bare and unappealing, which weakens the return from social media optimisation services.
Prevent Crawl Issues During Website Launches and Redesigns
Most robots.txt disasters happen at moments of change. If you are building or rebuilding a site, make launch checks part of the process. Confirm that the staging block has been removed, that the CMS visibility setting is correct, that redirects work and that the sitemap is submitted. A professional web design service should include these checks as standard, so that your new site goes live ready to be crawled and indexed instead of silently blocked.
Keep a record of changes to robots.txt, restrict who can edit it, and review it after every major update, migration or plugin installation. Set up monitoring so that you are alerted to unexpected changes in the file or sudden spikes in blocked pages.
A Quick Robots.txt Checklist
- Does yourdomain.com/robots.txt load at the root of the correct host?
- Is there any “Disallow: /” under a rule that applies to Googlebot?
- Are important folders, such as blog, products and services, open to crawling?
- Are CSS, JavaScript and image files accessible to Google?
- Does the Search Console robots.txt report show a recent, error-free fetch?
- Are any pages marked “Blocked by robots.txt” that should be indexed?
- Is the CMS visibility setting switched to allow search engines?
- Are firewalls and CDNs allowing verified Googlebot traffic?
- Is your sitemap listed in the file and submitted in Search Console?
- Have you tested key URLs after the latest change?
Conclusion
A robots.txt problem is one of the most damaging and most fixable crawl issues a website can face. Check the file, confirm what Google sees in Search Console, look for common mistakes such as leftover staging rules, over-broad blocks and conflicting directives, and test every change before and after it goes live. Once Google can crawl your pages freely, indexing and rankings can start to recover.
If you would like expert help, Rank My Business can audit your robots.txt file, find the crawl issues holding your website back and put the right fixes in place so that Google can reach and understand your most important pages. Together with a strong SEO services strategy, a clean crawl setup gives your business the best chance of being found by customers across India.
Recent Posts
by Harsh Agrawal
post, SEO
Robots.txt Blocking Google? How to Find and Fix Crawl Issues
Nov 23, 2026
by Harsh Agrawal
post, SEO
Crawled but Not Indexed: Causes and Proven Fixes
Nov 20, 2026
by Harsh Agrawal
Digital Marketing, post, SEO
Duplicate Content Found? How to Identify and Fix It
Nov 19, 2026
by Harsh Agrawal
Local SEO, post, SEO
Google Business Profile Traffic Dropped Suddenly? How to Diagnose It
Nov 16, 2026
by Harsh Agrawal
post, SEO
Organic Traffic Dropped Suddenly? 10 SEO Issues to Check
Nov 13, 2026
by Harsh Agrawal
post, SEO
Pages Indexed but No Impressions? Here’s How to Diagnose the SEO Problem
Nov 12, 2026
by Harsh Agrawal
Digital Marketing, post, SEO
Google November 2026 Core Update Is Now Rolling Out
Nov 11, 2026
by Harsh Agrawal
post, SEO
Why Do Some Businesses Fail to Get ROI From Digital Marketing?
Nov 5, 2026
by Harsh Agrawal
post, SEO
How to Speed Up Google Indexing and SEO for a New Website?
Nov 4, 2026