# Bad Bots Guard fourni par SiteGround rajouté par ticket 17-09-2016 RewriteCond %{HTTP_USER_AGENT} ^(.*)msnbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)MJ12bot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)BLEXBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)SolomonoBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)Yandex [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)bingbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)Baiduspider [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)Yeti [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)Mail.Ru [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)Ezooms [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)AhrefsBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)XoviBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(.*)exabot [NC] RewriteRule .* - [F] # Bad Bots Guard fourni par SiteGround par chat ensuite RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{HTTP_USER_AGENT} (bot|crawl|robot) RewriteCond %{HTTP_USER_AGENT} !(bing|Google|msn|MSR|Twitter|Yandex) [NC] RewriteRule ^/?.*$ "http\:\/\/127\.0\.0\.1" [R,L]
I just wanted to communicate it to you, maybe it could be useful for the bot list in the htaccess function of AdminTool ?
BTW 1 : The rules SiteGround gave me is written like :
RewriteCond %{HTTP_USER_AGENT} ^(.*)Yandex [NC]
Yours are written like :
SetEnvIf user-agent "Yandex" stayout=1
Wich one is the more efficient ? In StackExchange, they just talk about ressources intensive module for rewriteCond. If then, it would be better for me to add their bot just in your list in AT backend ? Do you confirm ?
BTW 2 : When I upgrade admintool with your last version, the list of bot could be have been changed. Have I to re-write a new htaccess on each upgrade of AT ?
Stephan Herby PAO Production New Caledonia - Canada - France