How do I block the Yandex.ru bot from crawling my site?

Re: How to stop Yandex, Blocking Yandex.RU

Yandex is the most popular search engine in Russia. Your bandwidth can go through the roof if this bot targets your website.

Unfortunately for many, the robots.txt file is ignored so blocking Yandex using the official method is not an option.

If you have a busy forum or website with hundreds of pages you may find that the Yandex Bot is starting to take up more of your site resources by indexing up to 90 pages every 15 minutes often leaving connections open or failing to close them properly.

You can easily disable the Yandex.ru Bot by placing the following in your .htaccess file:

SetEnvIfNoCase User-Agent "^Yandex*" bad_bot
Order Deny,Allow
Deny from env=bad_bot

Using this method saves you the trouble of having to find blocks of Yandex IP addresses and block them individually which would only work for a limited time.

Was this helpful?
How do I block the Yandex.ru bot from crawling my site? written by UKC average rating 3.8/5 - 4 user ratings

One thought on “How do I block the Yandex.ru bot from crawling my site?

  1. How do I block Yandex on a Mac the same way you described it using:
    SetEnvIfNoCase User-Agent “^Yandex*”
    bad_bot
    Order Deny,Allow
    Deny from env=bad_bot

    I have had to stop using my favorite browser (Opera) because Yandex poisoned it!

    Thank you.

Comments are closed.