Google AdSense
Operated by Google
Quick Facts
- User-Agent:
- Mediapartners-Google
- Category:
- Google Bots
- Operator:
- Safety:
- Safe
- Blocking Impact:
- Low - No SEO ranking impact
- SEO Impact Score:
- 2/10
- Official docs:
- developers.google.com
Confirmed by the operator
Google names Mediapartners-Google on its own documentation page, linked above. The token, purpose and robots.txt behaviour on this profile come from that page, re-checked on September 22, 2026.
What is Google AdSense?
Google AdSense is a monitoring and validation agent operated by Google. It checks pages, ad destinations, or policy compliance rather than collecting training data. It has no effect on search rankings.
Google AdSense is a monitoring and validation agent operated by Google. It checks pages, ad destinations, or policy compliance rather than collecting training data. It has no effect on search rankings.
Google AdSense uses the user-agent token Mediapartners-Google. You can control it via robots.txt, meta tags (noai), or the emerging llms.txt standard. Robots.txt is voluntary; for hard enforcement, combine it with server-level IP blocking.
What happens if you block Google AdSense?
How to block Google AdSense with robots.txt
<code>User-agent: Mediapartners-Google</code> - Matching is case-insensitive. Robots.txt is fetched from the root of each subdomain separately.
Is Google AdSense safe to allow?
What does Google AdSense do?
Understanding Google AdSense's purpose helps you decide whether to allow or block it.
- Validates pages, ads, or policy compliance
- Performs automated quality and safety checks
- Does not collect training data
- No impact on search rankings
- Generally safe to allow
Frequently Asked Questions
What is the official user-agent string for Google AdSense?
Mediapartners-Google. Use this exact string in robots.txt, Nginx, Apache, or Cloudflare firewall rules to target this bot. Matching in robots.txt is case-insensitive. Verify a request genuinely comes from Google AdSense by performing a reverse-DNS lookup on the source IP.Is Google AdSense safe?
Will blocking Google AdSense hurt my SEO?
How do I block Google AdSense in robots.txt?
/robots.txt file:User-agent: Mediapartners-Google Disallow: /
This instructs Google AdSense not to crawl any path on your site. To block only specific sections, replace / with the path (e.g.,
Disallow: /blog/).Does Google AdSense respect robots.txt?
/robots.txt before crawling, following RFC 9309. For hard enforcement, combine robots.txt with server-level IP or user-agent blocking.How do I verify if Google AdSense is crawling my site?
Mediapartners-Google (case-insensitive: grep -i "Mediapartners-Google" /var/log/nginx/access.log). Filter by user-agent in your log analytics tool (GoAccess, AWStats, etc.).