I have the following entry in my Awstats file:
Unknown robot (identified by 'bot*')
How can I block this bot?
I tried the following separately but none of them seems to be catching it:
RewriteCond %{HTTP_USER_AGENT} ^bot*
RewriteCond %{HTTP_USER_AGENT} bot\*
RewriteCond %{HTTP_USER_AGENT} bot[*]
Here is the full .htaccess code I am using:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^bot*
RewriteRule .? - [F,L]
Tested three regex values (^bot*, bot\*, bot[*]) in the second line, none of them stopped the bot.