File: /home/httpd/html/.htaccess
SetEnvIfNoCase User-Agent "Bandit" bad_bot
SetEnvIfNoCase User-Agent "Baiduspider" bad_bot
SetEnvIfNoCase User-Agent "BatchFTP" bad_bot
SetEnvIfNoCase User-Agent "Bigfoot" bad_bot
SetEnvIfNoCase User-Agent "Black.Hole" bad_bot
SetEnvIfNoCase User-Agent "SemrushBot" bad_bot
SetEnvIfNoCase User-Agent "AhrefsBot" bad_bot
SetEnvIfNoCase User-Agent "rogerbot" bad_bot
SetEnvIfNoCase User-Agent "exabot" bad_bot
SetEnvIfNoCase User-Agent "dotbot" bad_bot
SetEnvIfNoCase User-Agent "gigabot" bad_bot
SetEnvIfNoCase User-Agent "sitebot" bad_bot
SetEnvIfNoCase Referrer "inboundlinks.win" bad_bot
SetEnvIfNoCase User-Agent "^SemrushBot" bad_bot
SetEnvIfNoCase User-Agent ".*ahrefsbot.*" bad_bot
SetEnvIfNoCase User-Agent "^RSSingBot" bad_bot
SetEnvIfNoCase User-Agent ".*FeedFetcher.*" bad_bot
SetEnvIfNoCase User-Agent ".*seoscanners.net.*" bad_bot
SetEnvIfNoCase User-Agent "ArchiveBot" bad_bot
SetEnvIfNoCase User-Agent "Baidu" bad_bot
SetEnvIfNoCase User-Agent "AhrefsBot" bad_bot
SetEnvIfNoCase User-Agent "BLEXBot" bad_bot
SetEnvIfNoCase User-Agent "MJ12bot" bad_bot
SetEnvIfNoCase User-Agent "sqlmap" bad_bot
SetEnvIfNoCase User-Agent "Steeler" bad_bot
SetEnvIfNoCase User-Agent "Sogou web spider" bad_bot
Order Allow,Deny
Allow from All
Deny from env=bad_bot
<files wp-comments-post.php>
order allow,deny
deny from all
allow from 127.0.0.1
allow from 64.59.72.219
</files>
<files xmlrpc.php>
order allow,deny
deny from all
allow from 127.0.0.1
allow from 64.59.72.219
</files>