网站访问过的系统平台,浏览器,手机,搜索引擎的Agent

 

  
  
  
  
  1. //系统平台 
  2. $platforms = array ( 
  3.                     'windows nt 6.0'    => 'Windows Longhorn'
  4.                     'windows nt 5.2'    => 'Windows 2003'
  5.                     'windows nt 5.0'    => 'Windows 2000'
  6.                     'windows nt 5.1'    => 'Windows XP'
  7.                     'windows nt 4.0'    => 'Windows NT 4.0'
  8.                     'winnt4.0'          => 'Windows NT 4.0'
  9.                     'winnt 4.0'         => 'Windows NT'
  10.                     'winnt'             => 'Windows NT'
  11.                     'windows 98'        => 'Windows 98'
  12.                     'win98'             => 'Windows 98'
  13.                     'windows 95'        => 'Windows 95'
  14.                     'win95'             => 'Windows 95'
  15.                     'windows'           => 'Unknown Windows OS'
  16.                     'os x'              => 'Mac OS X'
  17.                     'ppc mac'           => 'Power PC Mac'
  18.                     'freebsd'           => 'FreeBSD'
  19.                     'ppc'               => 'Macintosh'
  20.                     'linux'             => 'Linux'
  21.                     'debian'            => 'Debian'
  22.                     'sunos'             => 'Sun Solaris'
  23.                     'beos'              => 'BeOS'
  24.                     'apachebench'       => 'ApacheBench'
  25.                     'aix'               => 'AIX'
  26.                     'irix'              => 'Irix'
  27.                     'osf'               => 'DEC OSF'
  28.                     'hp-ux'             => 'HP-UX'
  29.                     'netbsd'            => 'NetBSD'
  30.                     'bsdi'              => 'BSDi'
  31.                     'openbsd'           => 'OpenBSD'
  32.                     'gnu'               => 'GNU/Linux'
  33.                     'unix'              => 'Unknown Unix OS' 
  34.                 ); 
  35.  
  36.  
  37. // The order of this array should NOT be changed. Many browsers return 
  38. // multiple browser types so we want to identify the sub-type first. 
  39. //来源浏览器 
  40. $browsers = array
  41.                     'Flock'             => 'Flock'
  42.                     'Chrome'            => 'Chrome'
  43.                     'Opera'             => 'Opera'
  44.                     'MSIE'              => 'Internet Explorer'
  45.                     'Internet Explorer' => 'Internet Explorer'
  46.                     'Shiira'            => 'Shiira'
  47.                     'Firefox'           => 'Firefox'
  48.                     'Chimera'           => 'Chimera'
  49.                     'Phoenix'           => 'Phoenix'
  50.                     'Firebird'          => 'Firebird'
  51.                     'Camino'            => 'Camino'
  52.                     'Netscape'          => 'Netscape'
  53.                     'OmniWeb'           => 'OmniWeb'
  54.                     'Safari'            => 'Safari'
  55.                     'Mozilla'           => 'Mozilla'
  56.                     'Konqueror'         => 'Konqueror'
  57.                     'icab'              => 'iCab'
  58.                     'Lynx'              => 'Lynx'
  59.                     'Links'             => 'Links'
  60.                     'hotjava'           => 'HotJava'
  61.                     'amaya'             => 'Amaya'
  62.                     'IBrowse'           => 'IBrowse' 
  63.                 ); 
  64. //访问来源手机 
  65. $mobiles = array
  66.                     // legacy array, old values commented out 
  67.                     'mobileexplorer'    => 'Mobile Explorer'
  68. //                  'openwave'          => 'Open Wave', 
  69. //                  'opera mini'        => 'Opera Mini', 
  70. //                  'operamini'         => 'Opera Mini', 
  71. //                  'elaine'            => 'Palm', 
  72.                     'palmsource'        => 'Palm'
  73. //                  'digital paths'     => 'Palm', 
  74. //                  'avantgo'           => 'Avantgo', 
  75. //                  'xiino'             => 'Xiino', 
  76.                     'palmscape'         => 'Palmscape'
  77. //                  'nokia'             => 'Nokia', 
  78. //                  'ericsson'          => 'Ericsson', 
  79. //                  'blackberry'        => 'BlackBerry', 
  80. //                  'motorola'          => 'Motorola' 
  81.  
  82.                     // Phones and Manufacturers 
  83.                     'motorola'          => "Motorola"
  84.                     'nokia'             => "Nokia"
  85.                     'palm'              => "Palm"
  86.                     'iphone'            => "Apple iPhone"
  87.                     'ipad'              => "iPad"
  88.                     'ipod'              => "Apple iPod Touch"
  89.                     'sony'              => "Sony Ericsson"
  90.                     'ericsson'          => "Sony Ericsson"
  91.                     'blackberry'        => "BlackBerry"
  92.                     'cocoon'            => "O2 Cocoon"
  93.                     'blazer'            => "Treo"
  94.                     'lg'                => "LG"
  95.                     'amoi'              => "Amoi"
  96.                     'xda'               => "XDA"
  97.                     'mda'               => "MDA"
  98.                     'vario'             => "Vario"
  99.                     'htc'               => "HTC"
  100.                     'samsung'           => "Samsung"
  101.                     'sharp'             => "Sharp"
  102.                     'sie-'              => "Siemens"
  103.                     'alcatel'           => "Alcatel"
  104.                     'benq'              => "BenQ"
  105.                     'ipaq'              => "HP iPaq"
  106.                     'mot-'              => "Motorola"
  107.                     'playstation portable'  => "PlayStation Portable"
  108.                     'hiptop'            => "Danger Hiptop"
  109.                     'nec-'              => "NEC"
  110.                     'panasonic'         => "Panasonic"
  111.                     'philips'           => "Philips"
  112.                     'sagem'             => "Sagem"
  113.                     'sanyo'             => "Sanyo"
  114.                     'spv'               => "SPV"
  115.                     'zte'               => "ZTE"
  116.                     'sendo'             => "Sendo"
  117.  
  118.                     // Operating Systems 
  119.                     'symbian'               => "Symbian"
  120.                     'SymbianOS'             => "SymbianOS"
  121.                     'elaine'                => "Palm"
  122.                     'palm'                  => "Palm"
  123.                     'series60'              => "Symbian S60"
  124.                     'windows ce'            => "Windows CE"
  125.  
  126.                     // Browsers 
  127.                     'obigo'                 => "Obigo"
  128.                     'netfront'              => "Netfront Browser"
  129.                     'openwave'              => "Openwave Browser"
  130.                     'mobilexplorer'         => "Mobile Explorer"
  131.                     'operamini'             => "Opera Mini"
  132.                     'opera mini'            => "Opera Mini"
  133.  
  134.                     // Other 
  135.                     'digital paths'         => "Digital Paths"
  136.                     'avantgo'               => "AvantGo"
  137.                     'xiino'                 => "Xiino"
  138.                     'novarra'               => "Novarra Transcoder"
  139.                     'vodafone'              => "Vodafone"
  140.                     'docomo'                => "NTT DoCoMo"
  141.                     'o2'                    => "O2"
  142.  
  143.                     // Fallback 
  144.                     'mobile'                => "Generic Mobile"
  145.                     'wireless'              => "Generic Mobile"
  146.                     'j2me'                  => "Generic Mobile"
  147.                     'midp'                  => "Generic Mobile"
  148.                     'cldc'                  => "Generic Mobile"
  149.                     'up.link'               => "Generic Mobile"
  150.                     'up.browser'            => "Generic Mobile"
  151.                     'smartphone'            => "Generic Mobile"
  152.                     'cellphone'             => "Generic Mobile" 
  153.                 ); 
  154.  
  155. // There are hundreds of bots but these are the most common. 
  156. //访问过的搜索引擎来源 
  157. $robots = array
  158.                     'googlebot'         => 'Googlebot'
  159.                     'baidu'             => 'Baiduspider'
  160.                     '360cn'             => '360Spider'
  161.                     'youdao'            => 'YoudaoBot'
  162.                     'soso'              => 'Sosospider'
  163.                     'zexu'              => 'Zexuwhte '
  164.                     'inktomi'           => 'slurp'
  165.                     'alltheweb'         => 'fast-webcrawler'
  166.                     'altavista'         => 'scooter'
  167.                     'alexa'             => 'ia_archiver'
  168.                     'bing'              => 'MSNBot'
  169.                     'slurp'             => 'Inktomi Slurp'
  170.                     'yahoo'             => 'Yahoo'
  171.                     'askjeeves'         => 'AskJeeves'
  172.                     'fastcrawler'       => 'FastCrawler'
  173.                     'infoseek'          => 'InfoSeek Robot 1.0'
  174.                     'lycos'             => 'Lycos' 
  175.                 ); 

 

你可能感兴趣的:(agent)