Hello gentlemen!
Mikrotik is used as a transparent firewall. The firewall protects there are several WEB servers.
The problem: to block queries from search engines (WEB spiders) exept from Google and Ynadex bots.
Below there are requests from unknown robot which I'd like to block:
46.229.168.68 - - [01/Apr/2017:21:37:07 +0600] "GET /eng/business_news/3053 HTTP/1.1" 301 562 "-" "Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)"
46.229.168.68 - - [01/Apr/2017:21:37:31 +0600] "GET /eng/business_news/3053 HTTP/1.1" 301 562 "-" "Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)"
216.244.66.247 - - [01/Apr/2017:22:18:19 +0600] "GET /fr/business_news/183 HTTP/1.1" 200 424 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot, help@moz.com)"
216.244.66.247 - - [01/Apr/2017:22:18:25 +0600] "GET /fr/business_news/435 HTTP/1.1" 200 424 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot, help@moz.com)"
How can I do it, if used Layer7. I can't write regex