I try to block some bots using RewriteEngine and htaccess. For DotBot and similar bots I found many scripts like:
RewriteEngine On RewriteCond %{HTTP_USER_AGE