// RomcoSpiderCheck ver .01 // (c)Russ Kruse russ@rkproductions.net 2001 GPL $spiders = array("Spider", "ArchitextSpider", "MaxBot.com", "allothers", "ESISmartSpider", "FAST-WebCrawler", "xcrawler", "AllOthers", "GreatWhiteCrawl", "altavista", "Scooter", "G.R.A.B.", "scooter", "Mercator", "crawler", "inktomi", "Slurp", "Googlebot", "google", "Gulliver", "NorthernLight", "lycosidae", "lycos", "Lycos_Spider", "T-Rex", "InfoSeek", "infoseek", "ArchitextSpider", "excite"); // Tip -- you can add "MSIE" to the $spiders array to test it. It will then think Internet Explore is a search engine $i = "0"; while( $i < count($spiders)){ if (ereg("$spiders[$i]", "$HTTP_USER_AGENT")) { $spider_check='1'; } $i++; } //echo $spider_check; if (isset($spider_check)){ * //do stuff like add keywords * // Use header with less javescript/tables etc. } ?>
la magia del Perù in un diario di immagini e parole : : : : : : : "... la mia casa ambulante avrà ancora due gambe e i miei sogni non avranno frontiere" ( Che Guevara) |
||
|
||
|
|
|