PHP判断是否蜘蛛访问代码

搞插件有时候需要判断是否是蜘蛛,所以记下来 function nciaer_xxx_checkrobot($useragent = '') { static $kw_spiders = array('bot', 'crawl', 'spider' ,'slurp', 'sohu-search', 'lycos', 'robozilla'); static $kw_browsers = array('msie', 'netscape', 'opera', 'konqueror', 'mozilla'); $useragent = strtolower(empty($us...