View Full Version : exclude bots from visitor count
martinhruda
05-14-2005, 09:27 AM
Is there any way to make pixelpost not to count the web crawling bots into the number of visitors counter? It's counting every single entry of them. Thanx for help very much
PS Is there any way to set up the pixelpost counter to count only unique IPs?
martinhruda
05-14-2005, 05:33 PM
can anyone help me please? thank you
blinking8s
05-14-2005, 10:19 PM
the way it is setup, no...
are you getting hit by bots a lot?
martinhruda
05-14-2005, 10:33 PM
yup, there's quite a lot of visits of bots recorded, I assume. I guess sometimes too many of them. Have a look yourself: http://martinphoto.ic.cz/visitors.xls
Do you have any idea of the way to solve this problem?
blinking8s
05-14-2005, 10:43 PM
does it bother you that much? lol...
i dont personally know how to avoid the bots being counted, i rely on my hosting stats to tell me what i need to know, and just use the daily visits addon for the pixelpost and set it to a 24hr cookie expire time for shits and giggles...
martinhruda
05-14-2005, 10:47 PM
well, a little :) I don't know about any good websites statistics providers to count the visitors objectively for me, can you refer any good ones to me? Thank you for your help, I appreciate it very much.
blinking8s
05-14-2005, 10:53 PM
your host does not provide you with statistics for your account?
martinhruda
05-14-2005, 10:57 PM
not really, because I'm using free hosting, so they don't offer that much of services.
Joe[y]
05-15-2005, 08:53 AM
well you get what you pay for :P
tere are plenty of external hit services you can use though. a google search should do it..
at least until one of the developers can shed light on how we can acheive this.
raminia
05-15-2005, 08:58 AM
I recommend
http://www.nedstatbasic.net/
-okapi-
05-15-2005, 09:16 AM
i highly recommend powerphlogger
http://pphlogger.phpee.com/download.php
great free software. runs on your server. requires php and sql. you can use the same database as pixelpost.
with some fine tuning you can keep track of every single page (!) of pixelpost.
just contact me if you need help.
Joris
05-15-2005, 10:04 AM
I made a small stats page that doesn't count (most) crawlers, a small function checks if the useragent is a crawler:
function crawlerCheck($usragnt) {
if (stripos($usragnt, "bot") !== false || stripos($usragnt, "archiver") !== false || stripos($usragnt, "yahoo") !== false || stripos($usragnt, "jeeves") !== false || stripos($usragnt, "search") !== false || stripos($usragnt, "urllib") !== false || stripos($usragnt, "spider") !== false || stripos($usragnt, "crawler") !== false || stripos($usragnt, "larbin") !== false || stripos($usragnt, "appie") !== false || stripos($usragnt, "fetch api") !== false || stripos($usragnt, "libwww-perl") !== false || stripos($usragnt, "engine") !== false || stripos($usragnt, "libwww-perl") !== false || stripos($usragnt, "webcopier") !== false) {
return true;
}
}
You could put this in your index.php and add something like this to the visitor logging code:
if (!crawlerCheck($_SERVER["HTTP_USER_AGENT"])) {
// (existing visitor logging code here)
}
Or because this isn't necessary multiple times on a page just remove the function part and make it one big if statement..
blinking8s
05-15-2005, 06:53 PM
http://www.samphp.com/ is nice, its simple...
netwalker
05-16-2005, 12:59 AM
i highly recommend powerphlogger
http://pphlogger.phpee.com/download.php
great free software. runs on your server. requires php and sql. you can use the same database as pixelpost.
with some fine tuning you can keep track of every single page (!) of pixelpost.
just contact me if you need help.
Okapi
I'm interested if you could help me for that fine tuning.
Thanks.
-okapi-
05-16-2005, 03:07 AM
yes, for sure.
have you already installed powerphlogger?
netwalker
05-16-2005, 01:17 PM
yes, for sure.
have you already installed powerphlogger?
Yes, I have it installed and running.
Thanks
animoid
05-28-2005, 05:13 PM
Ooh, I'm interested in this too.
I was quite surprised when I found out that this is indeed the same counter software the folks at http://www.seo-blog.org/blogcounter/ use. For a while, I had a counter there, but you have to put their picture on your site, and this way it's much, much better.
So please tell us how to to make it work, okapi. I'll be very grateful and worship your avatar. Altar, candles, you name it. :D
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.