if (! function_exists('check_if_spider')) { function check_if_spider() { //Add spiders here $spiders = array('Googlebot', 'Yammybot', 'Openbot', 'Yahoo', 'Slurp', 'msnbot', 'ia_archiver', 'Lycos', 'Scooter', 'AltaVista', 'Teoma', 'Gigabot', 'Googlebot-Mobile'); //Loop through each spider and see if it matches UserAgent foreach ($spiders as $spider) { if (stripos(' '.$_SERVER['HTTP_USER_AGENT'], $spider)) { return TRUE; } } return FALSE; } } if (check_if_spider()) { $title = "Why searching for Tiger Card? The Den is right here."; } else { $title = "Wow! You found Tiger Card directly."; } ?>
, Facebook
, or LinkedIn
.
.