RewriteEngine on
#RewriteLogLevel 9
RewriteRule /local[^_/]|/sbin|/bin|/etc[^_]|httpd\.conf|access_log|error_log - [F]
RewriteCond %{HTTP_USER_AGENT} libwww-perl [NC]
RewriteRule .* - [F]
RewriteCond %{HTTP_USER_AGENT} Python-urllib [NC]
RewriteRule .* - [F]
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
RewriteCond %{HTTP_USER_AGENT} (semrushbot|yahoo|baidu|bing|opensiteexplorer|sqlmap|yisouspider|yandex|megaindex|PetalBot|DotBot|AhrefsBot|SEOkicks|MJ12bot|PetalBot) [NC]
RewriteRule .* - [F]
|