Robots.txt
TL;DR
Robots.txt tells search engine crawlers which parts of your site to crawl and which to skip. One wrong line can hide your entire site from Google.
Explain Simply
Robots.txt is like a 'Staff Only' sign at a store. It tells Google's robots which aisles they can browse and which are off-limits. But it's just a sign — sneaky robots can ignore it.
Robots.txt is a text file at the domain root that instructs web crawlers which pages to crawl and which to skip. Uses User-agent, Allow, Disallow directives. Not a security mechanism — just guidance.
The file must be at the exact path /robots.txt. It supports wildcards (*) in paths and the $ end-of-URL anchor. Multiple User-agent blocks can target specific crawlers (Googlebot, Bingbot, GPTBot). The Sitemap directive points crawlers to your XML sitemap.
Common mistakes: blocking CSS/JS files (prevents rendering), using Disallow: / on production (blocks everything), or forgetting to update after migration. Always test changes with Google's robots.txt tester.
⚡Why It Matters
Incorrect robots.txt can block Google from crawling your entire site, or expose sensitive URLs. It also points to sitemap.xml. A misconfigured robots.txt is one of the fastest ways to lose all organic traffic.
🔍How CiteStat Checks
CiteStat fetches and parses robots.txt, checks for Googlebot blocking, verifies sitemap references, and detects common syntax errors. It also reports whether Cốc Cốc's search crawler (coccocbot) may fetch the site root; that finding is informational and does not change the score.
CiteStat Score Impact
Headline score: the 18 rules that link here count in the Common Files group (10% of the headline, about 5.4 of its 10 points) and the Technical group (25% of the headline, about 2.3 of its 25 points).
Fix Difficulty
Editor: N/A | Developer: Easy | AI Agent: Easy
Guides on this topic
- Google December 2026 Core Update: What to Do During Rollout
- Can AI Crawlers Run JavaScript? 7 Days of Our Server Log
- What Is an Open Graph Image? Size and 7 Preview Faults
- API Catalog (RFC 9727): How AI Agents Find Your API
- Content Signals in robots.txt: search, ai-input, ai-train and the Wrong-Group Mistake
- AI Overviews and nosnippet, max-snippet: How to Control What Google's AI Quotes
- What Is llms.txt? How to Write One and What It Does for SEO
- Do AI Crawlers Run JavaScript? What GPTBot and ClaudeBot See
- AI Crawlers and robots.txt: Should You Block GPTBot and ClaudeBot?
- Agent Readiness: Is Your Website Ready for AI Agents?
- AI Content Writing Costs 73% Less When You Integrate a Dedicated SEO Tool