01 · Operator
Who operates YandexImageResizer
- Company
- Yandex
- Official docs
- yandex.com
02 · Behavior
What YandexImageResizer does
Yandex lists YandexImageResizer as a mobile devices robot and says it follows robots.txt. The documentation gives no further detail.
03 · Impact
Why YandexImageResizer matters for your site
If you allow it
- Official Yandex robot
- Follows robots.txt
If you block it
- Purpose is only briefly documented
04 · Allow
How to allow YandexImageResizer
robots.txt
User-agent: YandexImageResizer
Allow: /
Cloudflare
# Security › WAF › Custom rules › Create rule
Expression: (http.user_agent contains "YandexImageResizer")
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: YandexImageResizer
Allow: /
nginx
# nginx serves every user agent by default.
# Make sure no rule like this blocks it:
# if ($http_user_agent ~* "YandexImageResizer") { return 403; }
Apache
# Apache serves every user agent by default.
# Make sure .htaccess has no rule like this:
# RewriteCond %{HTTP_USER_AGENT} YandexImageResizer [NC]
# RewriteRule .* - [F,L]
05 · Block
How to block YandexImageResizer
YandexImageResizer follows robots.txt, so one rule is enough. Use a server or CDN rule only to stop spoofed copies.
robots.txt
User-agent: YandexImageResizer
Disallow: /
Cloudflare
# Security › WAF › Custom rules › Create rule
Expression: (http.user_agent contains "YandexImageResizer")
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: YandexImageResizer
Disallow: /
nginx
# In your server { } block:
if ($http_user_agent ~* "YandexImageResizer") {
return 403;
}
Apache
# .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} YandexImageResizer [NC]
RewriteRule .* - [F,L]
</IfModule>
06 · User agents
User agents we see for YandexImageResizer
The user agent published by the operator:
Mozilla/5.0 (compatible; YandexImageResizer/2.0; +http://yandex.com/bots)
07 · Verification
Is it really YandexImageResizer?
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 YandexImageResizer
Does YandexImageResizer respect robots.txt?
Yes. Yandex lists YandexImageResizer among the robots that follow robots.txt rules.
How do I block YandexImageResizer?
Add "User-agent: YandexImageResizer" and "Disallow: /" to your robots.txt.
How can I verify that YandexImageResizer 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