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 my IP address in AWStats

Discussion in 'Traffic Analysis' started by Minterest, Sep 25, 2007.

  1. #1
    Hi.

    Anyone here know how to block my IP address in AWStats so that traffic from my computer is not showed there....
     
    Minterest, Sep 25, 2007 IP
  2. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use SkipHosts in your AWStats config file:

    SkipHosts="11.22.33.44"
    if 11.22.33.44 is your IP address

    SkipHosts="REGEX[^11\.22\.]"
    if your IP address is in a range starting with 11.22... (other users in the same range will also be hidden in the reports).

    Jean-Luc
     
    Jean-Luc, Sep 25, 2007 IP
  3. Minterest

    Minterest Well-Known Member

    Messages:
    2,694
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Hi its giving me error... I tried to put

    SkipHosts="REGEX[^202\.164\.151]

    but when i clicked save its giving me the following error

    [a fatal error or timeout occurred while processing this directive]
     
    Minterest, Sep 25, 2007 IP
  4. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There should be a double quote at the end of the line.

    Jean-Luc
     
    Jean-Luc, Sep 25, 2007 IP
  5. Minterest

    Minterest Well-Known Member

    Messages:
    2,694
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    180
    #5
    Hey i missed that here.. actually I put

    SkipHosts="REGEX[^202\.164\.151]" itself...
     
    Minterest, Sep 26, 2007 IP
  6. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I used something slightly different because I'm on a dynamic IP address. I can browse my entire site from within the /admin directory so I can grep that out after using regresolvemerge.pl

    LogFile="/documentroot/admin/awstats/tools/logresolvemerge.pl /logdirectory/access*.log | egrep -v '(GET|POST) /admin' | "

    Of course, you could use any regex you liked there, including one that ignored your IP address.
     
    Ladadadada, Oct 7, 2007 IP