PHP Detect Google Bots

With those one line of code you can detect php.

if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) { 
    // what to do 
}

Leave a Reply

Your email address will not be published. Required fields are marked *