Security: Block bad spiders and bots from access to website using htaccess and HTTP_USER_AGENT
snippet in htaccess

Security: Block bad spiders and bots from access to website using htaccess and HTTP_USER_AGENT

user3688

SetEnvIfNoCase user-agent "^BlackWidow" bad_bot 
# and all others from your list
SetEnvIfNoCase user-agent "^Zeus" bad_bot 
<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</FilesMatch>