Skip to content

isBotAgent JavaScript

사용자 에이전트 값을 분석하여 검색 엔진의 봇인지 확인합니다. 봇인 경우 true를 반환합니다.

Parameters

  • userAgent::string

Returns

boolean

Examples

javascript
isBotAgent('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'); // Returns true

Released under the MIT License