| @@ 406-417 (lines=12) @@ | ||
| 403 | * |
|
| 404 | * @return bool |
|
| 405 | */ |
|
| 406 | public static function checkRobotWebdav() |
|
| 407 | { |
|
| 408 | if (stripos(self::$userAgentString, "WEBDAV Client") !== false || |
|
| 409 | stripos(self::$userAgentString, "Microsoft Office Existence Discovery") !== false) { //Office Webdav probe |
|
| 410 | self::$scriptedAgent->setName(ScriptedAgent::WEBDAV); |
|
| 411 | self::$scriptedAgent->setType(ScriptedAgent::TOOL); |
|
| 412 | self::$scriptedAgent->setInfoURL("https://en.wikipedia.org/wiki/WebDAV"); |
|
| 413 | return true; |
|
| 414 | } |
|
| 415 | return false; |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * Determine if the agent is the MetaURI scraper. |
|
| 420 | * |
|
| @@ 455-466 (lines=12) @@ | ||
| 452 | * |
|
| 453 | * @return bool |
|
| 454 | */ |
|
| 455 | public static function checkRobotScoopIt() |
|
| 456 | { |
|
| 457 | if (stripos(self::$userAgentString, "wpif Safari") !== false |
|
| 458 | || stripos(self::$userAgentString, "imgsizer Safari") !== false) { |
|
| 459 | self::$scriptedAgent->setName(ScriptedAgent::SCOOPIT); |
|
| 460 | self::$scriptedAgent->setType(ScriptedAgent::SPIDER); |
|
| 461 | self::$scriptedAgent->setInfoURL("https://www.webmasterworld.com/search_engine_spiders/4785385.htm"); |
|
| 462 | return true; |
|
| 463 | } |
|
| 464 | return false; |
|
| 465 | } |
|
| 466 | ||
| 467 | /** |
|
| 468 | * Determine if the agent is the Netcraft SSL Survey. |
|
| 469 | * |
|
| @@ 504-515 (lines=12) @@ | ||
| 501 | * |
|
| 502 | * @return bool |
|
| 503 | */ |
|
| 504 | public static function checkRobotPython() |
|
| 505 | { |
|
| 506 | if (stripos(self::$userAgentString, "python-requests/") !== false || |
|
| 507 | stripos(self::$userAgentString, "python-urllib/") !== false) { |
|
| 508 | self::$scriptedAgent->setName(ScriptedAgent::PYTHON); |
|
| 509 | self::$scriptedAgent->setType(ScriptedAgent::GENERIC); |
|
| 510 | self::$scriptedAgent->setInfoURL("https://www.python.org/"); |
|
| 511 | return true; |
|
| 512 | } |
|
| 513 | return false; |
|
| 514 | } |
|
| 515 | ||
| 516 | /** |
|
| 517 | * Determine if the agent is the GoLang programming language. |
|
| 518 | * |
|