antibot.dev
Sponsored Try LayerSift

Bot directory · Search engine

YandexBot

Yandex's main indexing robot for Yandex Search.

At a glance

Operator
Yandex
Purpose
Search engine
robots.txt token
YandexBot
Obeys robots.txt
YesYandex marks YandexBot as following the general robots.txt rules; a group for User-agent: Yandex applies to all Yandex robots, while a YandexBot group applies only to the main indexing bot.
Published IP ranges
None published
Reverse DNS
yandex.ru, yandex.net, yandex.com

User agents

As Yandex documents them. Version numbers can change.

Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)
Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.268

Block or allow YandexBot in robots.txt

To keep YandexBot off the whole site:

User-agent: YandexBot
Disallow: /

To keep it out of one folder and allow the rest:

User-agent: YandexBot
Disallow: /private/

A group for YandexBot replaces your User-agent: * rules for this bot, so repeat any general rules you still want it to follow. Check the result with the robots.txt checker.

How to verify YandexBot

Look up the requesting IP’s reverse DNS: a genuine YandexBot hostname ends in yandex.ru or yandex.net or yandex.com. Then look up that hostname and confirm it resolves back to the same IP.

Paste an IP from your logs into the bot IP verifier to check it.

Good to know

The second string is Yandex's example of a logged request; Yandex says the browser version changes, so log matching should not rely on it. Yandex does not publish its IP list (it names AS13238, AS208722 and AS212066). Several other Yandex robots ignore robots.txt rules aimed at all bots (User-agent: *) and need their own groups.

Questions

What is YandexBot?

YandexBot is Yandex’s search engine crawler. Yandex's main indexing robot for Yandex Search.

How do I block YandexBot?

Add “User-agent: YandexBot” followed by “Disallow: /” to your robots.txt. Yandex says YandexBot follows robots.txt.

How do I know a request really comes from YandexBot?

Look up the requesting IP’s reverse DNS: a genuine YandexBot hostname ends in yandex.ru or yandex.net or yandex.com. Then look up that hostname and confirm it resolves back to the same IP.