Forum Moderators: open
5.228.70.abc - - [04/Dec/2014:08:40:04 -0800] "GET /ebooks/aelfric/aelfric_full.html HTTP/1.1" 200 427034 "http://yandex.ru/yandsearch?text=searige&lr=213" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; MAARJS)"
{supporting files snipped}
128.72.134.abc - - [04/Dec/2014:08:40:06 -0800] "GET /ebooks/horn/KingHorn_KH.html HTTP/1.1" 200 119187 "http://yandex.ru/yandsearch?text=toryues+boston&lr=213" "Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0"
{supporting files snipped}
95.220.135.abc - - [04/Dec/2014:08:40:06 -0800] "GET /ebooks/paston/paston5.html HTTP/1.1" 200 289460 "http://yandex.ru/yandsearch?text=maknon+judith&lr=213" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"
{supporting files snipped}
Those are pretty big files that are being downloaded.
I already block .ru country code
# BLOCK COUNTRY DOMAINS
RewriteCond %{HTTP_REFERER} \.(ru|su|ua|cn|md|kz|pl|lv|ro)(/|$) [NC,OR]
RewriteCond %{HTTP_REFERER} \.(by|bg|hr|cz|al|rs|kp|hu|pw|uz|jp)(/|$) [NC]
RewriteRule (^|\.html|/)$ - [F]
# BLOCK REFERERS
RewriteCond %{HTTP_REFERER} (formatn|kochanelli|chimiver|poker|thepostemail) [NC,OR]
RewriteCond %{HTTP_REFERER} (sugarkun|trustcombat|escort|letseks|tipkiller) [NC,OR]
RewriteCond %{HTTP_REFERER} (semalt|buttons|prostitutki) [NC]
RewriteRule (^|\.html|/)$ - [F]
my code wouldn't work for your cases, where the referer is yandex.ru/... instead of just yandex.ru
(/|$) Well i block country codes the same way I block certain referers:
RewriteCond %{HTTP_REFERER} ^http://[a-z]{2}\.
http:// part at all? You could simply say \.[a-z][a-z](/|$) http://www.example.com/subdir.wx/pagename.html Hate to break it to you, but the quoted lines have no effect whatsoever on visitors who happen to come from .ua, .su or what-have-you. It only works if their referer is from one of the offending regions.
wilderness: It's easier to deny ALL the two-letter domain extensions, and just ALLOW the few you choose ;)
This would seem to exclude only two-letter (sub)domains
things that become a big nuisance
Back then, all websites used to get refers from both sub & domain extensions (free hosting was fairly common).
But none of this addresses the original question of what the ### is up with those Russian botnets?
refer log spams
Glad I deny all 5. and all Yandex intrusions I come across.
Good sleep, nyet headaches.
We block per...lenty of your darlings' UK CIDRs; Sky, Google, and of course the notorious nefarious TalkTalk.
some kind of app that's popular in Russia among people looking for free ebooks, and the app uses yandex to find book recommendations
RewriteCond %{HTTP_REFERER} ^http://yandex\.ru/yandsearch\?text=[^&]+&lr=213(&|$)
RewriteCond %{REQUEST_URI} ^(/.*)
RewriteRule \.html$ http://example.com/boilerplate/redirect.php?oldpage=yandex&newpage=%1 [R=301,L]
You’ve accidentally replicated the behavior of an undesirable robot, so we have to take this brief detour.