Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to block "bot*" bot via .htaccess |
|
Author |
|
Anturis
Joined: 20 Apr 2011 Posts: 7 Location: Turkey
|
Posted: Fri 19 Jun '15 11:35 Post subject: How to block "bot*" bot via .htaccess |
|
|
Hi,
I have the following entry in my Awstats file:
Code: | 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:
Code: | RewriteCond %{HTTP_USER_AGENT} ^bot*
RewriteCond %{HTTP_USER_AGENT} bot\*
RewriteCond %{HTTP_USER_AGENT} bot[*] |
Thanks for any ideas. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 22 Jun '15 10:24 Post subject: |
|
|
The awstats doesn't tell you the real name of the bot.
I think that there maybe even isn't the name bot in the user agent string. For that you may review your log files. |
|
Back to top |
|
jimski
Joined: 18 Jan 2014 Posts: 196 Location: USSA
|
Posted: Tue 23 Jun '15 1:44 Post subject: |
|
|
Another potential way to block an unknown bot it by blocking the IP range that the bot is using. This can be done in Apache through access control or through a Firewall. |
|
Back to top |
|
|
|
|
|
|