• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Simple Unique Visitor Counter

ShishCoBob

Limp Gawd
Joined
Jun 25, 2002
Messages
174
I'm trying to find a script to run for a week or two that just counts unique visitors for each day. That's it, just how many nuique visitors actually look at my pages and nothing else. Don't need IPs or anything. I have bbclone counting page views (along with resetting every now and then) but I need something that'll just count the unique visitors for me each day and not bog down everything like an old one I used to use.

Unfortunetly webalizer also counts those that access just pictures and such on my page so I can't count that.

Does anyone know of a nice and free ready made one that may suffice for a few days?
 
make one, and use either the ip to determine if its unique or a cookie, and voila. will probably take about 30 mins dev time in total
 
Originally posted by Desova
make one, and use either the ip to determine if its unique or a cookie, and voila. will probably take about 30 mins dev time in total

I would.... but it would take my awhile as I'm very rusty with my PHP right now since I haven't coded anything in quite a long time. I was hoping to find a script that clearly did it, so I could just implement it quickly tonight to monitor over the next several days.
 
Code:
grep "/path/to/site" <path/to/apache_log> | awk '{print $1}' | sort -u | wc -l

ie:

Code:
grep "/~lisa/" /var/log/apache2/access_log | awk '{print $1}' | sort -u | wc -l
 
Originally posted by BlasterJaack
If you have webalizer visits is pretty much what your asking for.

Not even close.

http://www.mrunix.net/webalizer/webalizer_help.html

For example. Yesterday webalizer reported:
Visits: 1609
Sites: 11363

While the new stat script I have installed told me:
Unique Visitors: 3885

The counter I installed keeps track of uniques by IP address and cookies if possible and then doesn't count them for another 24 hours. It gives me a much more accurate number than webalizer.
 
Originally posted by ShishCoBob
Not even close.

http://www.mrunix.net/webalizer/webalizer_help.html

For example. Yesterday webalizer reported:
Visits: 1609
Sites: 11363

While the new stat script I have installed told me:
Unique Visitors: 3885

Thanks for finding the help file about webalizer for me. This confirms that webalizer is much better, and something is wrong with your stat script, unless it is looking at multiple pages. The visits should be higher in webalizer because it waits 30 minutes and then counts ip again. yours is supposedly doing the same thing as webalizer except waiting 24 hours instead of 30 minutes? how the hell did you get more visits with your thing then. Webalizer has a good track record of being accurate it reads straight from your logs. I would not go with your inflated stats.
 
Back
Top