Jump to content

Googlebot, and the like?


FrOzeN

Recommended Posts

I've noticed on some forums, with online users it has a specific one for "GoogleBot".

I was thinking of implementing something like this, but maybe to also include some other main ones for yahoo and msn. I figured that this can be determined with $_SERVER["HTTP_AGENT"], but that can also be easily spoofed.

My other thought is that maybe they have a range of IP's which could be matched against on top of $_SERVER["HTTP_AGENT"] for a better/more assumed verification of it being real.

Any suggests for creating something like this? Or anyone know a little of IP's (or just ranges) which these bots use, and what bots they're from?
Link to comment
https://forums.phpfreaks.com/topic/21961-googlebot-and-the-like/
Share on other sites

There isn't a 100% reliable way. HTTP_USER_AGENT and HTTP_HOST are your best bets, but again, they are not 100% reliable.

Also note if you are intending on supplying different content to googlebot than you do for normal users, if found out you will receive automatic -1 google rank.
Link to comment
https://forums.phpfreaks.com/topic/21961-googlebot-and-the-like/#findComment-98104
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.