Back to Blog
    Digital Marketing16 November 2026

    How to check your robots.txt file

    How to check your robots.txt file

    To check your robots.txt file, go to your browser and type your domain followed by /robots.txt, for example, https://www.yoursite.com/robots.txt. The file loads as plain text instantly. You can also view it inside Google Search Console under the Settings section, which shows the version Google last crawled.

    Key takeaways

    • Every website has (or should have) a robots.txt file, accessible at the /robots.txt path on any domain.
    • Google Search Console shows you the exact robots.txt Google has cached, including when it was last fetched, useful for spotting outdated versions.
    • A single misplaced Disallow: / line can block Googlebot from crawling your entire site, wiping organic visibility overnight.
    • robots.txt controls crawl access, not indexing. Blocking a URL here does not remove it from Google's index, that requires a noindex directive.
    • The file is public, readable by anyone, and is one of the first places a search crawler visits when it arrives on your site.

    What is a robots.txt file?

    A robots.txt file is a plain-text file that sits in the root directory of your website and tells search engine crawlers which pages or sections they are allowed to visit. It follows the Robots Exclusion Protocol, an informal standard that all major crawlers (Googlebot, Bingbot, and others) respect.

    The file uses a straightforward syntax. A User-agent line names the crawler you are addressing, Disallow blocks a path, and Allow explicitly permits one. A Sitemap directive at the bottom points the crawler to your XML sitemap.

    Why does robots.txt matter for SEO?

    robots.txt determines where crawlers spend their time on your site. Search engines allocate a finite crawl budget to each domain, and a well-configured robots.txt file stops that budget being wasted on pages that offer no SEO value: staging directories, admin panels, duplicate filter pages, internal search results.

    The practical risk runs in both directions. Block too much, and Google cannot reach the pages you want ranked. Block too little, and crawlers burn budget on content that actively dilutes your signal. Neither outcome is abstract; both show up in rankings.

    How do you check a robots.txt file?

    There are three reliable methods, each suited to a slightly different purpose.

    Method 1: Direct URL check

    1. Open any browser.
    2. Type your domain followed by /robots.txt (for example, https://www.example.co.uk/robots.txt).
    3. The file renders as plain text. If you see a 404 error, the file does not exist.

    This is the fastest check and shows you exactly what any crawler sees right now.

    Method 2: Google Search Console

    1. Log in to Google Search Console.
    2. Go to Settings (the cog icon, bottom left).
    3. Under "Crawling", select "robots.txt".
    4. Google displays the cached version it last fetched, along with the fetch date.

    This method matters because there can be a lag between updating your file and Google re-fetching it. If you recently made changes, the cached version shows what Google is still acting on.

    Method 3: Screaming Frog

    Open Screaming Frog SEO Spider, enter your domain and run a crawl. Under Configuration > robots.txt, you can see the file and test how it treats specific URLs. This is particularly useful when you are auditing a site with complex crawl rules, because you can check whether specific pages are being blocked before the crawl even starts.

    How do you test a robots.txt rule without breaking anything?

    Google Search Console includes a robots.txt tester (accessible via the URL https://search.google.com/search-console/robots-testing-tool once your property is verified). Paste in a URL and it tells you whether the current rules block or allow it, and which specific line is responsible.

    This matters because robots.txt syntax is unforgiving. A trailing slash, a missing path prefix, or a wildcard in the wrong place can produce unintended blocks. Test before you deploy any changes.

    What are the most common robots.txt mistakes?

    Mistake What goes wrong How to fix it
    Disallow: / with no other rules Blocks all crawlers from every page Add specific disallow paths; allow everything else
    Blocking CSS and JavaScript Google cannot render pages correctly Ensure /assets/, /css/ and /js/ are not disallowed
    Blocking pages you need indexed Those pages drop out of search results Check disallow paths against your target keyword pages
    Stale Sitemap directive Google is pointed at a sitemap that no longer exists Update the Sitemap line to your current XML sitemap path
    Assuming blocked = deindexed Blocked pages can still appear in search if other sites link to them Use noindex for pages you want removed from the index entirely

    The last row is the one that catches people out most often. robots.txt and noindex serve different purposes and are not interchangeable. Our article on building an XML sitemap Google will actually crawl covers the complementary side of this: once crawlers can reach your pages, your sitemap ensures they find them efficiently.

    When should a small business owner actually edit robots.txt?

    You should review your robots.txt file when you launch a new site, migrate domains, add a staging environment, or notice a sudden unexplained drop in indexed pages. It is also worth checking after a CMS update, since platforms like WordPress occasionally regenerate the file with default rules.

    If your site is straightforward (a few dozen pages, no staging subdirectory, no internal search), your robots.txt file may need nothing more than a sitemap directive. The goal is not a complex file. It is a correct one.

    If you are unsure whether your crawl configuration is working in your favour, the team at Revolve reviews robots.txt as part of a broader SEO audit for small and mid-sized UK businesses. Get in touch and we will tell you plainly what is blocked, what should not be, and what to change.

    Frequently asked questions

    How to test robots.txt rules without putting the site at risk? Use Google Search Console's robots.txt tester tool. Paste the URL you want to check and it tells you whether your current rules block or allow it, and which specific line is responsible. No changes are made to the live file during testing.

    Does blocking a page in robots.txt remove it from Google's index? No. robots.txt controls crawler access, not indexing. A blocked page can still appear in search results if other websites link to it. To remove a URL from Google's index, use a noindex meta tag or HTTP header on the page itself, or submit a removal request via Google Search Console.

    Can robots.txt hurt my SEO? Yes, directly. Blocking pages that carry your target keywords means Googlebot cannot read or rank them. Blocking CSS and JavaScript files prevents Google from rendering your pages correctly, which can suppress rankings even when the HTML is accessible. A misconfigured robots.txt file is one of the more damaging technical SEO errors precisely because it is easy to overlook.

    What should a basic robots.txt file look like for a small business website? For most small business sites, a minimal file is best: User-agent: * on the first line (addressing all crawlers), a Disallow: line for any admin or staging paths you want hidden, and a Sitemap: directive pointing to your XML sitemap. Anything beyond that should be added only when there is a specific reason.

    How often should I check my robots.txt file? Check it whenever you make significant changes to your site structure, install a new CMS plugin that affects URL generation, migrate to a new domain, or notice an unexplained fall in crawled or indexed pages. For most small business sites, a quarterly review as part of a basic technical SEO check is sufficient.

    Written by the Revolve team, a digital marketing agency based in Banbury, Oxfordshire, delivering SEO, AEO and paid advertising for small and mid-sized UK businesses.

    Last updated: 16 November 2026

    By Revolve

    Need expert support on search, paid media or measurement?

    Get in Touch →