Jump to content

Not counting Googlebot in click counter


HaLo2FrEeEk

Recommended Posts

I have a click counter on some of the links on my frontpage.  What it does is, obviously, counts the number of times a link has been clicked.  It's very simple with no checks in place, meaning anyone could come and click it 100 times, and the count would just go right on up.

 

What I wantto do, though, is exclude Googlebot from the counting process.  I don't care if we get extra clicks from people, but I don't want search bots like googlebot, yahoo bot, etc. to influence the click counter.

 

I know that Googlebot's IP range is 66.249.*.* (I think), but is there a better way?  I mean, what if googlebot changes it's IP range?  Anyone have any tips?

Link to comment
https://forums.phpfreaks.com/topic/145657-not-counting-googlebot-in-click-counter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.