Apache Block User Agent
Перейти к навигации
Перейти к поиску
В каждый виртуалхост (можно инклудом с 1го файла)
RewriteCond %{HTTP_USER_AGENT} "AhrefsBot" [nocase] RewriteRule ^.*$ – [forbidden,last] RewriteCond %{HTTP_USER_AGENT} "MJ12bot" [nocase] RewriteRule ^.*$ – [forbidden,last] RewriteCond %{HTTP_USER_AGENT} "dobot" [nocase] RewriteRule ^.*$ – [forbidden,last] RewriteCond %{HTTP_USER_AGENT} "BLEXBot" [nocase] RewriteRule ^.*$ – [forbidden,last] RewriteCond %{HTTP_USER_AGENT} "360Spider" [nocase] RewriteRule ^.*$ – [forbidden,last]