Add robot user-agent list for robots. (eg. Baiduspider+(+http://www.baidu.com/search/spider.htm), Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmaste...)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7071 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-12-27 15:07:13 +00:00
parent 51a00c8c15
commit f918062acc

View file

@ -838,7 +838,7 @@
function isCrawler($agent = null) {
if(!$agent) $agent = $_SERVER['HTTP_USER_AGENT'];
$check_agent = array('bot', 'google', 'yahoo', 'daum', 'fish', 'hanrss');
$check_agent = array('bot', 'spider', 'google', 'yahoo', 'daum', 'fish', 'hanrss');
$check_ip = array(
'211.245.21.11*' /* mixsh */
);