国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2KB

  1. <?php
  2. if (!defined('DEDEINC')) exit ('dedebiz');
  3. /*
  4. * This file is part of Crawler Detect - the web crawler detection library.
  5. *
  6. * (c) Mark Beech <m@rkbee.ch>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. require_once(DEDEINC."/libraries/fixtures/abstractprovider.php");
  12. class Headers extends AbstractProvider
  13. {
  14. /**
  15. * All possible HTTP headers that represent the user agent string.
  16. *
  17. * @var array
  18. */
  19. protected $data = array(
  20. //The default User-Agent string.
  21. 'HTTP_USER_AGENT',
  22. //Header can occur on devices using Opera Mini.
  23. 'HTTP_X_OPERAMINI_PHONE_UA',
  24. //Vodafone specific header: http://www.seoprinciple.com/mobile-web-community-still-angry-at-vodafone/24/
  25. 'HTTP_X_DEVICE_USER_AGENT',
  26. 'HTTP_X_ORIGINAL_USER_AGENT',
  27. 'HTTP_X_SKYFIRE_PHONE',
  28. 'HTTP_X_BOLT_PHONE_UA',
  29. 'HTTP_DEVICE_STOCK_UA',
  30. 'HTTP_X_UCBROWSER_DEVICE_UA',
  31. //Sometimes, bots (especially Google) use a genuine user agent, but fill this header in with their email address
  32. 'HTTP_FROM',
  33. 'HTTP_X_SCANNER', //Seen in use by Netsparker
  34. );
  35. }
  36. ?>