| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of Crawler Detect - the web crawler detection library. |
| 5 |
* |
| 6 |
* (c) Mark Beech <[email protected]> |
| 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 |
|
| 12 |
namespace Jaybizzle\CrawlerDetect\Fixtures; |
| 13 |
|
| 14 |
class Headers extends AbstractProvider |
| 15 |
{ |
| 16 |
/** |
| 17 |
* All possible HTTP headers that represent the user agent string. |
| 18 |
* |
| 19 |
* @var array |
| 20 |
*/ |
| 21 |
protected $data = [ |
| 22 |
// The default User-Agent string. |
| 23 |
'HTTP_USER_AGENT', |
| 24 |
// Header can occur on devices using Opera Mini. |
| 25 |
'HTTP_X_OPERAMINI_PHONE_UA', |
| 26 |
// Vodafone specific header: http://www.seoprinciple.com/mobile-web-community-still-angry-at-vodafone/24/ |
| 27 |
'HTTP_X_DEVICE_USER_AGENT', |
| 28 |
'HTTP_X_ORIGINAL_USER_AGENT', |
| 29 |
'HTTP_X_SKYFIRE_PHONE', |
| 30 |
'HTTP_X_BOLT_PHONE_UA', |
| 31 |
'HTTP_DEVICE_STOCK_UA', |
| 32 |
'HTTP_X_UCBROWSER_DEVICE_UA', |
| 33 |
// Sometimes, bots (especially Google) use a genuine user agent, but fill this header in with their email address |
| 34 |
'HTTP_FROM', |
| 35 |
'HTTP_X_SCANNER', // Seen in use by Netsparker |
| 36 |
// Observed that Facebook will omit identifying itself in User Agent headers but will persist HeadlessChrome in this header for mobile requests |
| 37 |
'HTTP_SEC_CH_UA', |
| 38 |
]; |
| 39 |
} |
| 40 |
|