Bazen web sayfası hazırlar iken gelen ziyaretçilerin normal ziyaretçimi yoksa spidermı olup olmadıklarını test etmem gerekiyor. İşte o zaman aşağıdaki kodları kullanıyorum. Hazır bu blogu açmışken neden diğer arkadaşlarım ile paylaşmıyayım dedim. Kullanıma sunduğum fonksiyonlar ile spider testi, browser testi ve işletim sistemi testlerini yaptırabilmektesiniz. Hazırladığım eklenti “GoogleBot, Google AdSense, Google FeedFetcher, Google Images, Google Mobile Spider, Google Wireless Transcoder, Lycos, Ask Jeeves, Hot Bot, What You Seek, Archive.org, Altavista, Alexa, MSN Search, Yahoo!, Yahoo Publisher Network, Yahoo! Blogs, Yahoo! FeedSeeker, Yahoo! Vertical Crawler” tanıyabilecek şekilde ayarladım.function find_spiders ($useragent = ”);{if ($useragent==”) { $useragent = $_SERVER[‘HTTP_USER_AGENT’]; }$spider_name = ”;$spiders = array();$spiders[] = (‘name’=>’AideRSS’, ‘useragent’ => ‘aiderss.com’);$spiders[] = (‘name’=>’Alexa’, ‘useragent’ => ‘ia_archiver’);$spiders[] = (‘name’=>’Altavista’, ‘useragent’ => ‘scooter’);$spiders[] = (‘name’=>’Archive.org’, ‘useragent’ => ‘is_archiver’);$spiders[] = (‘name’=>’Ask Jeeves’, ‘useragent’ => ‘ask jeeves’);$spiders[] = (‘name’=>’Ask.com/Teoma’, ‘useragent’ => ‘Jeeves/Teoma’);$spiders[] = (‘name’=>’Blogged’, ‘useragent’ => ‘blogged_crawl’);$spiders[] = (‘name’=>’Bloglines’, ‘useragent’ => ‘Bloglines’);$spiders[] = (‘name’=>’BlogPulse’, ‘useragent’ => ‘BlogPulse’);$spiders[] = (‘name’=>’BlogsNow’, ‘useragent’ => ‘BlogsNowBot’);$spiders[] = (‘name’=>’Bookmark Sync2it’, ‘useragent’ => ‘sync2it.com’);$spiders[] = (‘name’=>’DoCoMo’, ‘useragent’ => ‘DoCoMo’);$spiders[] = (‘name’=>’EnaBall’, ‘useragent’ => ‘EnaBot’);$spiders[] = (‘name’=>’Exabot’, ‘useragent’ => ‘Exabot’);$spiders[] = (‘name’=>’FeedBurner’, ‘useragent’ => ‘FeedBurner’);$spiders[] = (‘name’=>’Feedster’, ‘useragent’ => ‘Feedster’);$spiders[] = (‘name’=>’Gaisbot’, ‘useragent’ => ‘Gaisbot’);$spiders[] = (‘name’=>’Gigablast’, ‘useragent’ => ‘http://www.gigablast.com/spider.html’);$spiders[] = (‘name’=>’Gigabot’, ‘useragent’ => ‘Gigabot’);$spiders[] = (‘name’=>’GoogleBot’, ‘useragent’ => ‘google’);$spiders[] = (‘name’=>’Google AdSense’, ‘useragent’ => ‘Mediapartners-Google’);$spiders[] = (‘name’=>’Google FeedFetcher’, ‘useragent’ => ‘FeedFetcher-Google’);$spiders[] = (‘name’=>’Google Images’, ‘useragent’ => ‘Googlebot-Image’);$spiders[] = (‘name’=>’Google Labs’, ‘useragent’ => ‘Python-urllib’);$spiders[] = (‘name’=>’Google Mobile Spider’, ‘useragent’ => ‘Googlebot-Mobile’);$spiders[] = (‘name’=>’Google Sitemaps’, ‘useragent’ => ‘Google-Sitemaps/’);$spiders[] = (‘name’=>’Google Wireless Transcoder’, ‘useragent’ => ‘Google Wireless Transcoder’);$spiders[] = (‘name’=>’Grub crawler’, ‘useragent’ => ‘Grub.org crawler’);$spiders[] = (‘name’=>’Guruji’, ‘useragent’ => ‘GurujiBot’);$spiders[] = (‘name’=>’Hatena’, ‘useragent’ => ‘Hatena’);$spiders[] = (‘name’=>’Heritrix’, ‘useragent’ => ‘heritrix’);$spiders[] = (‘name’=>’Horizon’, ‘useragent’ => ‘Horizon’);$spiders[] = (‘name’=>’Hot Bot’, ‘useragent’ => ‘slurp@inktomi’);$spiders[] = (‘name’=>’Icerocket’, ‘useragent’ => ‘BlogSearch’);$spiders[] = (‘name’=>’Indy Library’, ‘useragent’ => ‘IndyLibrary’);$spiders[] = (‘name’=>’LarBin’, ‘useragent’ => ‘larbin_’);$spiders[] = (‘name’=>’LinkWalker’, ‘useragent’ => ‘LinkWalker’);$spiders[] = (‘name’=>’Livedoor’, ‘useragent’ => ‘livedoorScreenShot’);$spiders[] = (‘name’=>’LookSmart’, ‘useragent’ => ‘grub-client’);$spiders[] = (‘name’=>’Lycos’, ‘useragent’ => ‘lycos’);$spiders[] = (‘name’=>’McBot’, ‘useragent’ => ‘McBot’);$spiders[] = (‘name’=>’Megite’, ‘useragent’ => ‘Megite2.0’);$spiders[] = (‘name’=>’METASpider’, ‘useragent’ => ‘METASpider’);$spiders[] = (‘name’=>’Microsoft URL Control’, ‘useragent’ => ‘MicrosoftURLControl’);$spiders[] = (‘name’=>’Moreover’, ‘useragent’ => ‘Moreoverbot’);$spiders[] = (‘name’=>’MSN Mobile’, ‘useragent’ => ‘MSMOBOT’);$spiders[] = (‘name’=>’MSN Search’, ‘useragent’ => ‘msnbot’);$spiders[] = (‘name’=>’OrangeSpider’, ‘useragent’ => ‘OrangeSpider’);$spiders[] = (‘name’=>’picsearch’, ‘useragent’ => ‘www.picsearch.com’);$spiders[] = (‘name’=>’ScSpider’, ‘useragent’ => ‘ScSpider’);$spiders[] = (‘name’=>’searchme.com’, ‘useragent’ => ‘searchme.com’);$spiders[] = (‘name’=>’SimplePie’, ‘useragent’ => ‘SimplePie/’);$spiders[] = (‘name’=>’Snapbot’, ‘useragent’ => ‘Snap’);$spiders[] = (‘name’=>’Sosospider’, ‘useragent’ => ‘soso.com’);$spiders[] = (‘name’=>’Sphere’, ‘useragent’ => ‘SphereScout’);$spiders[] = (‘name’=>’Synoo’, ‘useragent’ => ‘Synoobot’);$spiders[] = (‘name’=>’Technorati’, ‘useragent’ => ‘Technoratibot’);$spiders[] = (‘name’=>’Twiceler’, ‘useragent’ => ‘Twiceler’);$spiders[] = (‘name’=>’UniversalFeedParser’, ‘useragent’ => ‘UniversalFeedParser/’);$spiders[] = (‘name’=>’vBSEO’, ‘useragent’ => ‘vBSEO’);$spiders[] = (‘name’=>’Voila’, ‘useragent’ => ‘VoilaBot’);$spiders[] = (‘name’=>’W3C Validator’, ‘useragent’ => ‘W3C_Validator’);$spiders[] = (‘name’=>’WebAlta’, ‘useragent’ => ‘WebAltaCrawler/’);$spiders[] = (‘name’=>’What You Seek’, ‘useragent’ => ‘whatuseek’);$spiders[] = (‘name’=>’xMind’, ‘useragent’ => ‘xMind’);$spiders[] = (‘name’=>’Yahoo Publisher Network’, ‘useragent’ => ‘YahooYSMcm’);$spiders[] = (‘name’=>’Yahoo! Blogs’, ‘useragent’ => ‘Yahoo-Blogs’);$spiders[] = (‘name’=>’Yahoo! FeedSeeker’, ‘useragent’ => ‘YahooFeedSeeker’);$spiders[] = (‘name’=>’Yahoo! Japan’, ‘useragent’ => ‘Y!J-‘);$spiders[] = (‘name’=>’Yahoo! Vertical Crawler’, ‘useragent’ => ‘Yahoo-VerticalCrawler’);$spiders[] = (‘name’=>’Yahoo!’, ‘useragent’ => ‘MMCrawler’);$spiders[] = (‘name’=>’Yahoo!’, ‘useragent’ => ‘yahoo! slurp’);$spiders[] = (‘name’=>’Yandex’, ‘useragent’ => ‘yandex’);$spiders[] = (‘name’=>’YodaoBot’, ‘useragent’ => ‘YodaoBot’);foreach($spiders as $spider){if(stripos(strtolower($useragent),strtolower($spider[‘useragent’]))!==false){$spider_name = $spider[‘name’];}}unset ($spiders, $spider, $useragent);if ($spider_name){return $spider_name;}else{return false;}}