What belongs in robots.txt
robots.txt tells crawlers which paths they may fetch. Block pages that should never be crawled, like admin panels, account pages and internal search results, and point crawlers to your sitemap.
Do not block CSS or JavaScript files; search engines need them to render the page. And remember that robots.txt is public: it is not a way to hide secret URLs.
AI crawlers
OpenAI uses GPTBot, Anthropic uses ClaudeBot, Perplexity uses PerplexityBot, and Google uses the Google-Extended token for AI training without affecting Search. Allowing them lets your pages be read and cited; blocking them is a business decision.
Questions
Does robots.txt remove pages from Google?
No. It stops crawling. Use a noindex robots tag on the page to keep it out of results.
Does blocking Google-Extended affect my rankings?
No. Google says Google-Extended controls use for its AI models and does not affect Google Search.
Where should I upload the file?
To the root of the host: https://yoursite.com/robots.txt.
How do I check the file works?
Use the robots.txt tester on any page of your site to see what each crawler may fetch.
Guides for this
- robots.txt Guide: Syntax, Examples, AI Crawlers and the Mistakes to AvoidWhat robots.txt does, how to write one line by line, a ready robots.txt example for a SaaS site, how to handle GPTBot, ClaudeBot, Google-Extended and PerplexityBot, and the mistakes that quietly block Google.
- Noindex Tag: How to Keep a Page Out of Google (Meta Robots, X-Robots-Tag and robots.txt)How the noindex tag works: the meta robots and X-Robots-Tag code, why robots.txt Disallow is not noindex, which pages to noindex, how to remove a page from Google fast, and how to check it.
- How to Write a Show HN Post: Title, First Comment and TimingHow to write a Show HN post for Hacker News: what qualifies, how to write a title within the 80 character limit, what to put in the first comment, when to post and how to handle the thread.
Ask AI about this page
Open your assistant with a prompt to summarize this page, already filled in.