Detect Google Bot
-
Hi,
can you help me to create a new fuction is_GooogleBot? I think i must use the code from mobile-detect.php (see below) but i’m not able to put the correct code in mobble.php./** * Utilities. * * @var array */ protected static $utilities = array( // Experimental. When a mobile device wants to switch to 'Desktop Mode'. // @ref: https://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/ // @ref: https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011 'DesktopMode' => 'WPDesktop', 'TV' => 'SonyDTV|HbbTV', // experimental 'WebKit' => '(webkit)[ /]([\w.]+)', 'Bot' => 'Googlebot|DoCoMo|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|facebookexternalhit', 'MobileBot' => 'Googlebot-Mobile|DoCoMo|YahooSeeker/M1A1-R2D2', 'Console' => '\b(Nintendo|Nintendo WiiU|PLAYSTATION|Xbox)\b', 'Watch' => 'SM-V700', );
Thanks for the plugin,
Riccardo
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Detect Google Bot’ is closed to new replies.