I frequently visit a certain page on the web to view the hit-counter, but my visit is counted every time and it's inflating the number of actual hits. Is there a way to visit the page without adding another hit to the hit counter?
-
Is it a web page you control? – Karl Bielefeldt Jul 19 '10 at 22:27
-
Unfortunately, it isn't. – Keyslinger Jul 19 '10 at 22:40
-
That could help to actually see the counter in action. I think you'd prefer not to share the page, but do you know if it's a plugin / homemade thing? – CronosS Jul 25 '18 at 20:30
4 Answers
if you want implement the hit counter yourself then what you can do is use 'sessions' and only increment hit counter when the session isn't present in the server with existing ip. but i don't think there is a way for you to control hit counter on someone else's website.

- 1,993
- 16
- 26
In this case, the hit counter implementation is broken. Hits should only be counted by unique users usually. Otherwise any goon could set a reload bot and blow out the numbers on the counter. A real counting solution is going to be using something like the analytics API from google (or other analytics implementations) which will give you dashboard access to the real visibility of the site.

- 18,322
- 2
- 37
- 44
Try to add your IP to hit counter and block it in the code or you can use an javascript disable plugin .. web developer plugin for FF and chrome does that too.
There is no perfect way to solve it. But a pretty good approach is setting cookies on visitor's browser. Then, keep counting only if that cookie did not visit your page yet. The biggest problem with this approach is that keeping track of every single visitor on your page could potentially lead you to a huge database.

- 176,835
- 32
- 241
- 292