| Author |
Message |
warren-the-ape

Joined: May 18, 2008
Posts: 12
|
Posted:
Tue Jun 10, 2008 4:41 am |
|
Ey Gotcha,
I really like the look and feel of the Info Box you offer here on your site but wondered if it was possible to check if guest IP's belonged to a search engine or not?
I've seen this in other CMS software, where search engines like Google and Yahoo (or MSN/Live) were identified and listed as visitor, looks nice and pretty informative as well.
Do you have any experience with this? Or do you think it will be a nice add-on for a next Info Box release?  |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Jun 10, 2008 6:16 am |
|
Yeah, it is possible, but using IP's isn't very efficient. The user agent string can be used to find if it is a bot. Either way, neither method would be 100% accurate as IP's can change and the User-Agent can be easily spoofed. It is a good idea but I'm not sure when I'll be able to update the info box. If you're brave you could give it a shot. And if you want a poor example to work from, check out the file includes/counter.php  |
| |
|
|
 |
warren-the-ape

Joined: May 18, 2008
Posts: 12
|
Posted:
Tue Jun 10, 2008 7:07 am |
|
Thnx for your reply
Hmm, includes/counter.php is that the one used by the statistics page? I will have a look at it soon
I red that for instance Google uses a specific IP range for their spiders, Google image crawler (66.249.72.xxx) and Google robot 66.249.64.XXX.
So including the whole range and you would be done (in theory)
I will see if i can get some working example but my PHP knowledge consists mostly out of 'copy-paste', so dont expect anything soon, hehehe. |
| |
|
|
 |
|
|