1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to block "bot*" bot via .htaccess

Discussion in 'Apache' started by ademmeda, Jun 19, 2015.

  1. #1
    Hi,

    I have the following entry in my Awstats file:

    Unknown robot (identified by 'bot*')
    Code (markup):
    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[*]
    Code (ApacheConf):
    Thanks for any ideas.
    SEMrush
     
    ademmeda, Jun 19, 2015 IP
    SEMrush
  2. jslirola

    jslirola Member

    Messages:
    39
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    33
  3. ademmeda

    ademmeda Active Member

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    3
    Trophy Points:
    70
    #3
    Thanks for the link, I will check it. I later noticed that my Awstats is an old version and this bot (bot*) is either bingbot or YandexBot, so no need to block it.
     
    ademmeda, Jun 24, 2015 IP
  4. moneyroad

    moneyroad Member

    Messages:
    88
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    48
    #4
    There was very helpful post on MOZ about blocking bots via .htaccess
    https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
     
    moneyroad, Jun 24, 2015 IP