구글봇인지 확인

Jmnote (토론 | 기여)님의 2017년 11월 23일 (목) 22:11 판 (새 문서: ;Googlebot 확인 ;구글봇인지 확인 ==방법1: HTTP_USER_AGENT== *HTTP_USER_AGENT 가 googlebot이면 구글봇 <source lang='php'> if(strstr(strtolower($_SERVER['HTTP_USER_AGE...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
Googlebot 확인
구글봇인지 확인

1 방법1: HTTP_USER_AGENT

  • HTTP_USER_AGENT 가 googlebot이면 구글봇
if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) {
    // 구글봇!
}

2 방법2: host 명령어

$ host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1

3 같이 보기

4 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}