logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How to block "bot*" bot via .htaccess
Author
Anturis



Joined: 20 Apr 2011
Posts: 7
Location: Turkey

PostPosted: Fri 19 Jun '15 11:35    Post subject: How to block "bot*" bot via .htaccess Reply with quote

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

PostPosted: Mon 22 Jun '15 10:24    Post subject: Reply with quote

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

PostPosted: Tue 23 Jun '15 1:44    Post subject: Reply with quote

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


Reply to topic   Topic: How to block "bot*" bot via .htaccess View previous topic :: View next topic
Post new topic   Forum Index -> Apache