Technical SEO & Indexability

robots.txt: The Gatekeeper File

Your robots.txt is the first file Googlebot reads when visiting your domain. A single accidental Disallow: / rule can de-index your entire website within 24 hours. Understanding this file is non-negotiable for enterprise SEO.

Critical: robots.txt ≠ noindex

Disallow prevents crawling, NOT indexing. A disallowed page can still appear in search results if external sites link to it. To prevent a page from appearing in search results, add a <meta name="robots" content="noindex"> tag — but Googlebot must be ABLE to crawl the page to read that tag. Build and validate your rules with our free robots.txt generator before you deploy.

Annotated robots.txt Example

/robots.txt
User-agent: *# Applies to all crawlers
Allow: /# Allow crawling of all public content
Disallow: /admin/# Block dashboard & CMS admin routes
Disallow: /api/private/# Block private API endpoints
Disallow: /checkout/# Block checkout — no SEO value, wastes crawl budget
Disallow: /search?# Block internal search result pages
# AI training crawlers
User-agent: GPTBot# Block OpenAI training crawler
Disallow: /
User-agent: anthropic-ai# Block Anthropic training crawler
Disallow: /
Sitemap: https://yourdomain.com/sitemap.xml# Always include sitemap URL

What to Disallow vs. Allow

Disallow These

  • /admin/, /dashboard/, /wp-admin/
  • /checkout/, /cart/, /order-confirmation/
  • Internal search: /search?q=
  • Session IDs and most URL parameters
  • /api/ endpoints with no public HTML
  • Pagination beyond page 3-5 (large sites)

Always Allow These

  • All CSS and JS files (for rendering)
  • All public HTML pages
  • Image files used in public content
  • Any page you want to rank in search
  • Your XML sitemap location
  • Robots.txt itself (automatic)

Murkuz AI SEO Scorecard Criteria

Target Score: 96/100

Root Placement

robots.txt is accessible exactly at yourdomain.com/robots.txt with correct text/plain Content-Type header.

CSS/JS Allowances

No Disallow rules blocking Googlebot from any CSS, JavaScript, or font files required for rendering.

Sitemap Declaration

Absolute URL Sitemap directive present at the bottom of the file pointing to the XML sitemap.

Frequently Asked Questions

What happens when robots.txt blocks Googlebot from accessing CSS and JavaScript?

If your robots.txt Disallows Googlebot from crawling your CSS or JavaScript files, Google's rendering engine (which executes JavaScript to fully understand pages) will be unable to see the fully rendered version of your content. The result is that Google sees an incomplete, unrendered page — potentially missing navigation elements, content loaded via JavaScript, and structured data injected by scripts. This can cause severe indexation quality issues. Always verify your robots.txt allows access to all rendering assets using the URL Inspection tool in Google Search Console.

Does robots.txt disallow prevent a page from appearing in Google search results?

No — and this is a critical misunderstanding. Robots.txt controls crawling, not indexing. If a page is disallowed in robots.txt, Google will not crawl it, but the page can still be indexed if external websites link to it. Google can discover the URL from external links and include it in the index without ever crawling its content. If you need to prevent a page from appearing in search results, use the 'noindex' meta robots tag — but note that Google must be able to crawl the page to read that tag.

How often does Googlebot re-fetch robots.txt?

Google re-fetches your robots.txt file approximately every 24 hours. However, changes may take up to a few days to fully propagate in Google's cache. If you've made an urgent change (e.g., you accidentally blocked critical pages and need immediate fix), you can use the robots.txt tester in Google Search Console to verify correct parsing and submit a recrawl of your sitemap to accelerate re-discovery of previously blocked pages.

Should I block AI web crawlers in robots.txt?

In 2024–2025, there has been significant debate around blocking AI training crawlers (GPTBot, Anthropic-AI, PerplexityBot, CCBot, etc.). The practical SEO answer is nuanced: blocking AI training crawlers does NOT prevent your content from being used in LLM responses, as most training has already occurred and models are updated infrequently. However, blocking AI scraper crawlers does reduce server load from non-value-adding bots. Critically, NEVER confuse AI training crawlers with AI-powered search crawlers (e.g., Bingbot and Google's own crawlers) — blocking those would eliminate search indexation.

Written by Junaid Khalid

Audit your robots.txt before Googlebot does. Validate crawlability instantly.

Murkuz continuously monitors your robots.txt for accidental disallow rules, blocked rendering resources, and missing sitemap declarations — alerting you before a misconfiguration impacts rankings.