YandexBot user agent string
Yandex's main indexing robot. When it renders a page, the UA can carry a Chrome version after the bot token, so Yandex advises not matching on that version in logs. Below is the exact string it sends, what each part means, and how to allow or block it.
Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)
At a glance
| Type | Search engine crawler |
| Operator | Yandex |
| Purpose | Main indexing robot for Yandex Search |
| Version | 3.0 |
| robots.txt token | YandexBot |
| How to verify | Reverse DNS host ends in yandex.ru, yandex.net or yandex.com and resolves back to the same IP. |
Allow or block it in robots.txt
Block YandexBot from the whole site
User-agent: YandexBot
Disallow: /Allow it again
User-agent: YandexBot
Allow: /
String breakdown
| Fragment | Meaning |
|---|---|
Mozilla/5.0 | Historical compatibility token. Nearly every browser claims "Mozilla/5.0" so that old servers do not serve it broken pages. |
compatible | Compatibility token — historically sent by IE, now mostly by bots. |
YandexBot/3.0 | YandexBot 3.0 — an automated crawler/bot, not a real browser. |
+http://yandex.com/bots | Info page the bot operator publishes for webmasters. |
Use it in code
curl
curl -A "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" https://example.comPython (requests)
import requests
requests.get("https://example.com", headers={"User-Agent": "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"})Playwright (Node.js)
const context = await browser.newContext({ userAgent: "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" });
Source: How to check that a robot belongs to Yandex · checked September 2026