@born2run - Yandex does respect robots.txt, but does not support some directives that some other bots support.
This is the problem why robots.txt fails in much of what it was originally intended to do. It never did become a standard and is interpreted differently by different robots.
BTW - Why would anyone want to disallow one of the top search engines in the world? Yandex has offices in Silicon Valley close to Google, Yahoo & Facebook. They are a major player and contribute more that just search. They can be highly beneficial to websites. Open a Yandex Webmaster Tools [webmaster.yandex.com] account to manage your presence at Yandex and find out more about the way they support robots.txt.
[edited by: engine at 10:48 am (utc) on Oct 10, 2018] [edit reason] Please see WebmasterWorld TOS [/edit]
keyplyr
10:56 am on Oct 10, 2018 (gmt 0)
Sorry, that does not accomplush what you want.
When you Disallow: /framework/ you disalliw anything after that, so admin-ajax.php would also be disallowed.
not2easy
5:12 pm on Oct 10, 2018 (gmt 0)
That is true for many bots, but not for Google. If you use the code as posted it can work for Googlebot. Once you Disallow the /framework/ directory, not all robots follow the Allow: permission, but Google does - as long as the Allow: follows the Disallow: directive.
keyplyr
7:24 pm on Oct 10, 2018 (gmt 0)
Good point, thanks for reminding me of that irregularity. It's things like this that sway me to use other tactics and avoid robots.txt.