Many visits from one website - how to stop them?

Discussion in 'General Chat' started by FoxIX, Jul 30, 2011.

  1. #1
    I do not know what other section to put this into but I have been going through my stats for one of my websites and I have found that I am getting thousands of visits each month from xbizhost[dot]com. This seems strange as they are a hosting company and not a search engine.

    This site is chewing up over 50% of the bandwidth compared to all other traffic. Is there a way I can stop this site from visiting? I know I can stop bots from visiting, but a hosting site? This does seem a bit strange and also very annoying!

    Has anyone else had this happen to them? Or had any dealings with this company?

    TIA
     
    FoxIX, Jul 30, 2011 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    Are they page hits? Or is someone hotlinking your images?
    If you want to redirect hits, you could use something like this at the top of your index file (if your site is using PHP):
    <?
    if (strstr($_SERVER["HTTP_REFERER"],'xbizhost')){
    header('HTTP/1.1 301 Moved Permanently');
    header("Location: http://www.google.com");
    }
    ?>
    PHP:
     
    Kerosene, Jul 30, 2011 IP
  3. FoxIX

    FoxIX Well-Known Member

    Messages:
    211
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    140
    #3
    They are page hits. Unfortunately the page is in html.
     
    FoxIX, Jul 30, 2011 IP
  4. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #4
    Are the hits from different IPs, or all from the same IP?
    How do you know that it's not somebody with a genuine link to your site, sending real traffic?

    You can use htaccess to redirect based on the referrer:
    http://www.google.com/search?q=htaccess+referrer+redirect
     
    Kerosene, Jul 30, 2011 IP