PHP redirect if user is from google search

Viewed 46

Can I detect if user clicked on my site from google chrome or google search and redirect them?

I know that I can detect Chrome user with this function:

if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false{
//redirect
}

But is it possible to redirect user from other browser that is using google search? Maybe with googlebot IP?

0 Answers
Related