| @@ 429-440 (lines=12) @@ | ||
| 426 | * | |
| 427 | * @return bool | |
| 428 | */ | |
| 429 | public static function checkRobotWebdav() | |
| 430 |     { | |
| 431 | if (stripos(self::$userAgentString, "WEBDAV Client") !== false || | |
| 432 | stripos(self::$userAgentString, "Microsoft Office Existence Discovery") !== false) //Office Webdav probe | |
| 433 |         { | |
| 434 | self::$scriptedAgent->setName(ScriptedAgent::WEBDAV); | |
| 435 | self::$scriptedAgent->setType(ScriptedAgent::TOOL); | |
| 436 |             self::$scriptedAgent->setInfoURL("https://en.wikipedia.org/wiki/WebDAV"); | |
| 437 | return true; | |
| 438 | } | |
| 439 | return false; | |
| 440 | } | |
| 441 | ||
| 442 | /** | |
| 443 | * Determine if the agent is the MetaURI scraper. | |
| @@ 481-492 (lines=12) @@ | ||
| 478 | * | |
| 479 | * @return bool | |
| 480 | */ | |
| 481 | public static function checkRobotScoopIt() | |
| 482 |     { | |
| 483 | if (stripos(self::$userAgentString, "wpif Safari") !== false | |
| 484 | || stripos(self::$userAgentString, "imgsizer Safari") !== false) | |
| 485 |         { | |
| 486 | self::$scriptedAgent->setName(ScriptedAgent::SCOOPIT); | |
| 487 | self::$scriptedAgent->setType(ScriptedAgent::SPIDER); | |
| 488 |             self::$scriptedAgent->setInfoURL("https://www.webmasterworld.com/search_engine_spiders/4785385.htm"); | |
| 489 | return true; | |
| 490 | } | |
| 491 | return false; | |
| 492 | } | |
| 493 | ||
| 494 | /** | |
| 495 | * Determine if the agent is the Netcraft SSL Survey. | |
| @@ 533-544 (lines=12) @@ | ||
| 530 | * | |
| 531 | * @return bool | |
| 532 | */ | |
| 533 | public static function checkRobotPython() | |
| 534 |     { | |
| 535 | if (stripos(self::$userAgentString, "python-requests/") !== false || | |
| 536 | stripos(self::$userAgentString, "python-urllib/") !== false) | |
| 537 |         { | |
| 538 | self::$scriptedAgent->setName(ScriptedAgent::PYTHON); | |
| 539 | self::$scriptedAgent->setType(ScriptedAgent::GENERIC); | |
| 540 |             self::$scriptedAgent->setInfoURL("https://www.python.org/"); | |
| 541 | return true; | |
| 542 | } | |
| 543 | return false; | |
| 544 | } | |
| 545 | ||
| 546 | /** | |
| 547 | * Determine if the agent is the GoLang programming language. | |