StatCounter: Blocking Your Own Visits

If you spend a lot of time browsing/checking/editing your own site, it’s a good idea to block your visits from being counted by StatCounter… Otherwise, your personal visits can skew your stats. At StatCounter we offer two different blocking methods.

  1. IP Blocking
    This method is suitable if you have a static (unchanging) IP address (e.g. 12.345.67.89) OR if your IP always falls within a particular range (e.g. 12.345.*.*). Hits from any blocked IP address or IP range will not be included in your StatCounter stats.

  2. Blocking Cookie
    If you have a dynamic (constantly and completely changing) IP then use the Blocking Cookie method. Note that for this method you *must* enable cookies in your browser and ensure that cookies are not regularly destroyed by either your browser or your antivirus software. A blocking cookie must be set up for each separate browser you use. Hits from any browser which contains a blocking cookie will not be included in your StatCounter stats.

More about IP Blocking
Please note that this method will *only* be effective if you have a static (unchanging) IP or if your IP remains within a set range. If your IP is dynamic and changes completely and constantly then IP blocking is not suitable. Instead you should consider using the blocking cookie method.

You can confirm your IP address via many different websites like this one, that one or another one and then block your IP using these steps:

    1. Login to StatCounter.

    2. Click the small “wrench” or “spanner” icon to the right of any project name. (You will later have an option to apply the IP block to all projects)

    3. Click the “Edit Settings” link.

    4. Go to the section named “IP Blocking”. Enter your IP address/IP range##.

    5. Check the box in the section called “Update IP Blocking in All Projects?” if you want to block the visits in all of your projects.

    6. Click the “Edit Project” button.

The IP should now be added to the blocking list.

##If your IP address is in a range, for example, 12.345.00.00 to 12.345.99.99 please use the following format, 12.345.*.* – using the asterisk wildcard characters like this allows you to block the full range of IP addresses which could be allocated to you.

IP Blocking – Your Questions Answered

  • How do I find out my IP address?
  • You can confirm your IP address via many different websites like this one, that one or another one.

  • How do I know if I have a static (unchanging) IP?
  • Generally, you will *only* have a static IP if you have requested one from your ISP (internet service provider) and in many cases an additional fee will be charged. If you have *not* requested a static IP then it’s unlikely that you have one. You can confirm this by communication with your ISP directly. OR you can try to check yourself via a “trial and error” method. Check your IP using one of the websites mentioned above. Reset your internet connection and check your IP again. Repeat this a few times and note your IP on each occasion. It should quickly become clear if you have a static IP or if your IP is in a static range or indeed if you have a dynamic IP.

  • I’ve blocked my IP but my hits are still counted by StatCounter – what’s wrong?
  • The most likely problem is that your IP address has changed from the IP that you blocked. Check the IP address/range that you have blocked in StatCounter. Next check your current IP using one of the sites listed above. You will probably find that your current IP is not blocked by StatCounter. To solve the problem, add your new IP address/range for blocking purposes. If you’re still having trouble – then talk to us.

More about the Blocking Cookie
The Blocking Cookie will *only* be effective so long as the cookie (small text file) remains in your browser. If your browser/antivirus software is set to remove/destroy cookies, then this method will not work for you. In order to effectively use the Blocking Cookie, you must set your browser/antivirus to allow/retain cookies.

Here’s how to set up a Blocking Cookie:

    1. Login to StatCounter.

    2. On the “My Projects” page click the “Blocking Cookie” link.

    3. Click the “Creating Blocking Cookie For All Projects” button.

    4. The page will reload and the button will change to “Destroy Blocking Cookie For All Projects”. This indicates that the blocking cookie has been successfully installed.

Blocking Cookie – Your Questions Answered

  • I’ve set up a Blocking Cookie but my visits are still counted by StatCounter – what’s wrong?
  • The Blocking Cookie can *only* block your visits while it is stored in your browser. If your browser is set to disallow or remove cookies, then this means that the Blocking Cookie will not be retained in your browser and therefore cannot block your hits. To effectively use the Blocking Cookie you *must* ensure that your browser is set to allow (and retain) cookies. You should also confirm that your antivirus software is not destroying your cookies.

  • How do I enable cookies in my browser?
  • The method to enable cookies will vary from browser to browser – here are instructions for a selection of common browsers:

      Internet Explorer 7 or 8:
      1. Click Start > Control Panel. (Note: with Windows XP Classic View, click the Windows Start button > Settings > Control Panel).
      2. Double-click the Internet Options icon.
      3. Click the Privacy tab.
      4. Click the Advanced button.
      5. Select the option ‘Override automatic cookie handling’ under the Cookies section in the Advanced Privacy Settings window.
      6. Select the ‘Accept’ or ‘Prompt’ option under ‘First-party Cookies.’
      7. Select the ‘Accept’ or ‘Prompt’ option under ‘Third-party Cookies.’ (Note: if you select the ‘Prompt’ option, you’ll be prompted to click OK every time a website attempts to send you a cookie.)
      8. In the Internet Options window, click OK to exit.

      Internet Explorer 6:
      1. Click Start > Control Panel. (Note: with Windows XP Classic View, click the Windows Start button > Settings > Control Panel).
      2. Click the Advanced button.
      3. Select the option ‘Override Automatic Cookie Handling.’
      4. Select the ‘Accept’ or ‘Prompt’ option under ‘First-party Cookies.’
      5. Select the ‘Accept’ or ‘Prompt’ option under ‘Third-party Cookies.’ (Note: if you select the ‘Prompt’ option, you’ll be prompted to click OK every time a website attempts to send you a cookie.)
      6. In the Internet Options window, click OK to exit.

      Mozilla Firefox 3.x (PC):
      1. Click Tools > Options.
      2. Click Privacy in the top panel.
      3. Set ‘Firefox will’: to Use custom settings for history.
      4. Check the box next to Accept cookies from sites to enable cookies.
      5. Click OK.

      Mozilla Firefox 2.x (PC):
      1. Click Tools > Options.
      2. Click Privacy in the top panel.
      3. Select the checkbox labeled ‘Accept cookies from sites.’
      4. Click OK.

      Mozilla Firefox (Mac):
      1. Go to the Firefox drop-down menu.
      2. Select Preferences.
      3. Click Privacy.
      4. Set ‘Firefox will’: to Use custom settings for history.
      5. Check the box next to Accept cookies from sites to enable cookies.
      6. Click OK.

      Chrome (PC):
      1. Click the Tools menu.
      2. Select Options.
      3. Click the Under the Hood tab.
      4. Click Content settings in the ‘Privacy’ section.
      5. Make sure Allow local data to be set is selected to allow both first-party and third-party cookies.

      Chrome (Mac):
      1. Select Chrome > Preferences on the menu bar.
      2. Click the Under the Hood tab.
      3. Click Content settings in the ‘Privacy’ section.
      4. Make sure Allow local data to be set is selected to allow both first-party and third-party cookies.

      Safari:
      1. Go to the Safari drop-down menu.
      2. Select Preferences.
      3. Click Security in the top panel.
      4. Under ‘Accept Cookies’ select the option ‘Always’.

If you have any questions about IP Blocking or the Blocking Cookie, please post them below. We’d also welcome any feedback, comments or suggestions… and if you spot any errors in our post (bar the footnote below!) then please do let us know.

FOOTNOTE: Before anyone decides to comment on our example IP address 12.345.67.89 – please note that it’s an ILLUSTRATIVE EXAMPLE ONLY! It’s not *supposed* to be a real IP address, ok? It’s just a “made up” IP for which we used the digits 1,2,3,4,5,6,7,8,9 in that order regardless of whether that sequence of numbers is technically possible or not.

This entry was posted in Features. Bookmark the permalink.

44 Responses to StatCounter: Blocking Your Own Visits

  1. Actress says:

    Another two useful features. Great…

  2. John D says:

    As always great information !

  3. This is a very useful feature. My sites get few visits so if my own visits weren’t blocked, the stats would become really skewed. I’ve been using the IP blocking since… ever I registered really.

  4. Mark biotech says:

    Although I know a bit on how the blocking cookie worked, thanks for explaining the whole process in detail. IP and Cookie blocking are interesting concepts.

  5. Lex says:

    Could you publish more details for those of us using Adblock, Noscript, malware blocking, etc.
    1. Which domains _must_ be allowed for cookies to work?
    2. Which scripts _must_ be permitted to run for cookies to work?
    3. Can you add some code to alert users when cookies can’t work because of their browser/plugin/firewall settings?

  6. zhanzhang says:

    I’ve been using the IP blocking since… ever I registered really.

  7. Betty says:

    This is a great feature.

  8. John Denner says:

    Just updated my website to block my own view count and stats
    How long should it take before I see the results ?

  9. Sam says:

    Neither method was ideal for me so in IE I just added http://www.statcounter.com to the Restricted Sites list. I now have to login every time I come to view my stats, but other than that there are no problems.

  10. really nice sharing thanks..!!

  11. Mobolimo says:

    This is the best feature of using StatCounter where I’m able to filter out my own impressions.

  12. digiknowzone says:

    Statcounter is so far the best accurate counter I’ve seen. Good job guys! I just started my self-hosted blog, can you help on how to intergrate stat counter to my wordpress blog(digiknowzone.com)?

  13. good idea
    thanks statcounter

  14. George says:

    how about increased log size? 1 million + counts sounds a lot better then a small 100k….

  15. Wouldn’t only one visit a day be registered anyway?

  16. With IP address blocking, how many parts of that four part number do you usually have to block if you are working from a variety of computers on a home or office network? Just two (ie 100.100.*.*) or three (100.100.100.*) or less?

  17. Great post, I had already blocked many of my visits but didn’t realize how many features that had! Thanks.

  18. bestmore says:

    It is a good thing.

  19. Oh so that was it. I have always updated the IP blocking manually and in fdact it became a nuisance since my internet provider changes IP addresses at will sometimes 2 time a day. Now I know how to do it and have done it.

    Thanks and looking forward to more tips.

  20. I have had to use the IP blocking as the cookies keep getting deleted from my browser through my maintenance software.

    Nice work as that was annoying!

  21. Great information – of course one would want to block your own visits to your website. Although, given the number of times I go to my own site to check on my posts, etc, it would be nice to see my stats so high :-)

    Thank you for posting such a comprehensive and thorough explanation of using both options to block my visits to my site. You’ve made it very easy to understand and to carry out.

  22. Jack Smith says:

    Can I block a language like Chinese. If the IE language or the OS language is Chinese, The statcounter can block it or not?

  23. Just see this useful information. I have had this problem for a long time when I want to edit my site.

    Keep your great work, Thanks!

  24. tech_loso says:

    Good ideas and approaches.

  25. igecorner says:

    This is great, i will block my cookie now itself.

    Thanks’

  26. Great idea now I will block cookies, as my own visit was raising the counter. Damn!

  27. mbt says:

    good suggestion.

  28. giggsy says:

    Thank for information,I will change it .

  29. Rahim says:

    Thanks for informing, Will correct

  30. Great work by StatCounter.com keep it up

  31. statcounter always delivered more informative stats that are useful to utilize your keywords on various topics thanks for the new updates and developments.

  32. emdr says:

    This is a very useful feature. great post! thanks!

  33. skb2titbgf3 says:

    If the browser doesn’t have cookies enabled correctly will the messages “your visits are being logged” and “your visits are not being logged” reflect what stat counter is really doing, or can a badly configured browser cause those messages to be incorrect?

    Thanks

  34. Tom says:

    Good suggestion!

  35. Thank you for posting such a comprehensive and thorough explanation of using both options to block my visits to my site. You’ve made it very easy to understand and to carry out.

  36. Thanks Statcounter Team for bringing up nice reporting to understand the flow of visitor to our contents.

  37. online izle says:

    its really usefull thanks Statcounter team

  38. I do like that feature, although I do like to know how much I am visiting my own site. For that reason, labeling my IP address works fine for me so I can see what my activity looks like on site.

  39. Cairns Diver says:

    This gives heaps better stats.

  40. jean says:

    Hello

    i have two computers at work and have my browser set to my webpage
    one computer has the ISP address blocked
    but my new one doesn’t
    i understand the range you can have to include, i guess, other addresses, but i wish to just have two ISP addresses so far blocked…
    is this possible?

    thanks in advance
    Peace
    Jean

  41. acai says:

    statcounter always delivered much more educational stats that are helpful to make use of your key words on many different topics thanks for the brand new updates and developments.

  42. I take it one could use it to block bots also.

  43. For reasons uknown i’m ending up with a blank page whenever i try to post a comment,do you recognize precisely why its occurence?i’m applying oprea web-browser

  44. John D says:

    Well worth the read !
    Thanks again Statcounter !