Google · Traditional search crawlers
Googlebot robots.txt guide
Googlebot crawls web pages for Google Search. It is separate from the Google-Extended usage-control token.
Reviewed December 1, 2026 · Official documentation
Googlebot robots.txt rules
Add the chosen group to your site’s robots.txt. Review existing rules for this token first: repeated matching groups combine.
Block all paths
User-agent: Googlebot Disallow: /
Allow all paths
User-agent: Googlebot Allow: /
Restrict selected paths
User-agent: Googlebot Allow: / Disallow: /private/ Disallow: /api/
Test Googlebot access
Blocked/
Line 2 · Disallow: /
Specific User-agent: Googlebot
Site-wide policy: Blocked
What changes if you block Googlebot?
Google & Bing Search
Blocking Googlebot can prevent crawling and harm search visibility. A robots.txt block is not a reliable removal instruction: Google can sometimes index a URL without crawling its content.
AI visibility & content use
Google Search features can use content crawled by Googlebot. Do not confuse allowing Googlebot with granting or denying the separate uses controlled by Google-Extended.
Identify genuine requests
- robots.txt token
- Googlebot
Use Google’s published crawler IP ranges or forward-confirmed reverse DNS. Check the documented hostname suffix, then resolve it back to the original IP address.
Verification referenceUser-Agent versions change. Use the operator’s current examples rather than treating a sample header as proof of identity.
Which robots.txt rule takes priority?
In this inspector, matching groups for Googlebot are combined. If a specific group exists, the wildcard group (User-agent: *) is not added. Without a specific group, the wildcard applies. With neither, access defaults to allowed.
For each path, the longest matching directive wins; Allow wins a tie. An empty Disallow does not block anything. A policy result describes the written rules, not proof that a crawler follows them.
Read RFC 9309Common questions about Googlebot
Does Disallow remove a page from Google’s index?
Not reliably. A blocked URL can still appear without its content being crawled. Use an appropriate noindex directive on a crawlable page or require authentication for private content.
Can I block Google-Extended while allowing Googlebot?
Yes. They serve different controls. Google states that Google-Extended does not affect inclusion or ranking in Google Search.
Does blocking Googlebot protect private pages?
No. robots.txt is public and voluntary. Use authentication, authorization, and appropriate server controls for private content; do not publish secret paths as a security measure.