01 · Operator
Who operates YandexMetrika
- Company
- Yandex
- Type
- Monitoring bot
- Official docs
- yandex.com
02 · Behavior
What YandexMetrika does
It works for sites that use Yandex Metrica. Several versions of the user agent exist. Yandex states that it does not follow robots.txt.
03 · Impact
Why YandexMetrika matters for your site
If you allow it
- Needed for Yandex Metrica features on your site
If you block it
- Ignores robots.txt
- No use if you do not use Yandex Metrica
04 · Allow
How to allow YandexMetrika
robots.txt
User-agent: YandexMetrika
Allow: /
Cloudflare
# Security › WAF › Custom rules › Create rule
Expression: (http.user_agent contains "YandexMetrika")
Action: Skip › All Super Bot Fight Mode rules
# Also check Security › Bots: "Block AI bots" can block it regardless of robots.txt.
WordPress
# WordPress serves a virtual robots.txt. Edit it with your SEO plugin:
# Yoast: SEO › Tools › File editor · Rank Math: General Settings › Edit robots.txt
User-agent: YandexMetrika
Allow: /
nginx
# nginx serves every user agent by default.
# Make sure no rule like this blocks it:
# if ($http_user_agent ~* "YandexMetrika") { return 403; }
Apache
# Apache serves every user agent by default.
# Make sure .htaccess has no rule like this:
# RewriteCond %{HTTP_USER_AGENT} YandexMetrika [NC]
# RewriteRule .* - [F,L]
05 · Block
How to block YandexMetrika
YandexMetrika has been reported to ignore robots.txt. Block it at your CDN or web server as well.
robots.txt
# YandexMetrika has been reported to ignore robots.txt.
# Add a Cloudflare, nginx or Apache rule as well.
User-agent: YandexMetrika
Disallow: /
Cloudflare
# Security › WAF › Custom rules › Create rule
Expression: (http.user_agent contains "YandexMetrika")
Action: Block
WordPress
# WordPress serves a virtual robots.txt. Edit it with your SEO plugin:
# Yoast: SEO › Tools › File editor · Rank Math: General Settings › Edit robots.txt
User-agent: YandexMetrika
Disallow: /
nginx
# In your server { } block:
if ($http_user_agent ~* "YandexMetrika") {
return 403;
}
Apache
# .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} YandexMetrika [NC]
RewriteRule .* - [F,L]
</IfModule>
06 · User agents
User agents we see for YandexMetrika
The user agent published by the operator:
Mozilla/5.0 (compatible; YandexMetrika/2.0; +http://yandex.com/bots)
07 · Verification
Is it really YandexMetrika?
Anyone can copy a user agent. A reverse DNS lookup of a real request resolves to yandex.ru</code>, <code>yandex.net</code>, <code>yandex.com, and that hostname resolves back to the same IP.
FAQ
Questions about YandexMetrika
Does YandexMetrika respect robots.txt?
No. Yandex documents that YandexMetrika does not follow robots.txt rules.
How do I block YandexMetrika?
Because it ignores robots.txt, you must block it by user agent on your server or firewall.
How can I verify that YandexMetrika is really from Yandex?
Run a reverse DNS lookup on the IP. The hostname must end in yandex.ru, yandex.net or yandex.com, and a forward lookup must return the same IP.
Last reviewed Oct 8, 2026