SetEnvIfNoCase User-Agent "Google" bad_bot
SetEnvIfNoCase User-Agent "Yandex" bad_bot
SetEnvIfNoCase User-Agent "Yahoo" bad_bot
SetEnvIfNoCase User-Agent "bing" bad_bot
SetEnvIfNoCase User-Agent "Mail" bad_bot
<Limit GET POST HEAD>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Limit>
SetEnvIf Remote_Addr "123.456.78.90" myip
Order Deny,Allow
Deny from all
Allow from env=myip