This question already has an answer here:
- php crawler detection 2 answers
I need an if statement that will include a file on my page only if it detects crawlers from google, bing and yahoo. I found this code on another post but I want to add bing and yahoo too:
if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot"))
{
//MY CODE
}
I would really appreciate if someone could solve this problem for me.
</div>