웹 브라우저가 아닌 wget, curl, php를 봇으로 취급

This commit is contained in:
conory 2018-06-14 12:57:00 +09:00
parent ce5a730505
commit 9e2a09f108
2 changed files with 5 additions and 5 deletions

View file

@ -146,7 +146,7 @@ class UA
}
// Look for common search engine names and the 'bot' keyword.
if (preg_match('/bot|spider|crawler|archiver|wget|curl|slurp|facebook|teoma|yeti|daum|https?:|@/i', $ua))
if (preg_match('/bot|spider|crawler|archiver|wget|curl|php|slurp|facebook|teoma|yeti|daum|https?:|@/i', $ua))
{
return self::$_robot_cache[$ua] = true;
}