- /**
- * Determine whether the access source search engine is a real user
- * Site bbs.it-home.org
- */
- Function is_bot ()
- {
- /* This function will check whether the visitor is a search engine robot */
- // Expand the array as needed
- $ Botlist = array ("Teoma", "alexa", "froogle", "Gigabot", "inktomi ",
- "Looksmart", "URL_Spider_ SQL", "Firefly", "NationalDirectory ",
- "Ask Jeeves", "TECNOSEEK", "InfoSeek", "WebFindBot", "girafabot ",
- "Crawler", "bbs.it-home.org", "Googlebot", "Scooter", "Slurp ",
- "Msnbot", "appie", "FAST", "WebBug", "Spade", "ZyBorg", "rabaz ",
- "Baiduspider", "Feedfetcher-Google", "TechnoratiSnoop", "Rankivabot ",
- "Mediapartners-Google", "Sogou web spider", "WebAlta Crawler", "TweetmemeBot ",
- "Butterfly", "Twitturls", "Me. dium", "Twiceler ");
-
- Foreach ($ botlist as $ bot)
- {
- If (strpos ($ _ SERVER ['http _ USER_AGENT '], $ bot )! = False)
- Return true; // Is a bot
- }
-
- Return false; // Not a bot
- }
- ?>
|