mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Add ApacheBench to list of bots
This commit is contained in:
parent
8d2b105847
commit
3bae984d08
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ class UA
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look for common search engine names and the 'bot' keyword.
|
// Look for common search engine names and the 'bot' keyword.
|
||||||
if (preg_match('/bot|spider|crawler|archiver|wget|curl|php|slurp|wordpress|facebook|teoma|yeti|daum|mediapartners-google|[(<+]https?:|@/i', $ua))
|
if (preg_match('/bot|spider|crawler|archiver|wget|curl|php|slurp|wordpress|facebook|teoma|yeti|daum|apachebench|mediapartners-google|[(<+]https?:|@/i', $ua))
|
||||||
{
|
{
|
||||||
return self::$_robot_cache[$ua] = true;
|
return self::$_robot_cache[$ua] = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue