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

TypeSearch engine crawler
OperatorYandex
PurposeMain indexing robot for Yandex Search
Version3.0
robots.txt tokenYandexBot
How to verifyReverse 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

FragmentMeaning
Mozilla/5.0Historical compatibility token. Nearly every browser claims "Mozilla/5.0" so that old servers do not serve it broken pages.
compatibleCompatibility token — historically sent by IE, now mostly by bots.
YandexBot/3.0YandexBot 3.0 — an automated crawler/bot, not a real browser.
+http://yandex.com/botsInfo 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.com

Python (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

Related user agents

All user agent strings →

What does your own browser send? Check your user agent →