# Accurate hit counter

**URL:** <https://forum.kirupa.com/t/accurate-hit-counter/203632>\
**Category:** flash\
**Created:** [October 12, 2006, 5:27pm UTC](https://forum.kirupa.com/t/accurate-hit-counter/203632 "2006-10-12T17:27:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armored](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Armored](https://forum.kirupa.com/u/Armored)\
**Post date:** [October 12, 2006, 5:27pm UTC](https://forum.kirupa.com/t/accurate-hit-counter/203632/1 "2006-10-12T17:27:41Z")

</div>

Hi,

I’m in the process of creating a hit counter (number of visitors counter) using Flash. I already seen the PHP based counter here on [kirupa.com](http://kirupa.com) but it is not accurate enough as it will increment upon each page refresh. I would like to get a more accurate statistic about the number of different visitors rather than the number of page loads.

What I was thinking about was getting and storing the IP addresses and only incrementing the counter if the IP address is not yet known. This will give a higher accuracy but is still not perfect. Does anyone have any better idea?

Many thanks in advance for your help!
