This counter is cookies based, so obviously if the visitors of your blog/website disables the cookies in their browser this script will not work as expected, in fact if the cookies are disabled the script can no longer know if the actual user has been already counted or not, for this reason there are other implementations that rely on the user IP, anyway, personally I think that for an hit counter a cookies based solution is good enough.
Now I'll explain how the script works, but first let's take a look at the code:
![]() |
Hit counter source code opened with Geany |
You can find the source code for the hit counter in the download section of the blog.