Agent

Google-Agent

Used by agents hosted on Google infrastructure to navigate the web and perform actions on user request.

Agent: Browses and takes actions on behalf of a user. Depends on your site: allow for shopping or booking, block for sensitive forms.

Company
Google · website
User-agent contains
Google-Agent
robots.txt token
Google-Agent · robots.txt unknown
Official IP ranges
20 ranges · source · updated 2026-12-02
Signed requests
Yes (Web Bot Auth / HTTP Message Signatures)
Documentation
Official docs
Sources
developers.google.com
Added · verified
2026-12-02 · 2026-12-02

Block Google-Agent

robots.txt
User-agent: Google-Agent
Disallow: /
nginx (in the http block, then: if ($ai_bot) { return 403; })
map $http_user_agent $ai_bot {
    default 0;
    "~*Google-Agent" 1;
}
Apache / .htaccess
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} (Google-Agent) [NC]
    RewriteRule .* - [F,L]
</IfModule>
Cloudflare WAF expression
(lower(http.user_agent) contains "google-agent")

Want to block more bots at once? Use the generator.

Example user-agent

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko; compatible; Google-Agent; +https://developers.google.com/crawling/docs/crawlers-fetchers/google-agent) Chrome/120.0.0.0 Safari/537.36

Other Google bots

Something wrong or out of date? Edit this bot on GitHub or report a change.