
08-01-2005, 07:07 AM
|
 |
SEO Junior
|
|
Join Date: Aug 2005
Location: Spain
Posts: 18
|
|
Quote:
|
Originally Posted by tradelnet
I would really like to know how Yahoo robot is identified when he enters a site. I mean, Google does it as Googlebot, and if you programme with php you can identify it with if(strstr($_SERVER['HTTP_USER_AGENT'] ,'Googlebot')){ ... }.
So, how can you identify Yahoo Bot?
I have already made the same question with MSN in Msn Forum.
Thank You very much,
tradelNet,
Role Playing Games.
|
Here you have the code you want (PHP + Yahoo Bot identifier).
Code:
if(stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,"Inktomi")
and stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,"Slurp")){
... //(here more code)
}
|