# See https://www.robotstxt.org/robotstxt.html
# ─────────────────────────────────────────────────────────────────────────────
# AI 크롤러 정책 (2026-08-26 결정) — 학습형은 막고, 인용형은 연다.
#
# 배경: 2026-08-26 하루 요청 71,435건 중 약 56,600건이 meta-externalagent 였다.
# ASN AS32934 / netname FB-BLOCK 으로 Meta 본사 소유임을 확인했다(UA 위조 아님).
#
# 판단: "AI 크롤러"는 두 부류이고 우리에게 주는 것이 정반대다.
# · 학습형 — 콘텐츠를 모델 가중치에 흡수한다. **출처 표기도 유입도 없다.** 비용만 우리가 낸다.
# · 인용형 — 질문 시점에 조회해 **링크와 함께 인용한다.** GEO 유입 경로다.
# 실측상 인용형은 3일간 chatgpt-user 4건뿐이었다. 지금은 비용만 내고 노출은 못 얻는 구조다.
#
# ⚠️ robots.txt 는 강제력이 없다. 실제 차단은 config/initializers/rack_attack.rb 가 한다.
# ⚠️ 2주 뒤 지표를 보고 되돌릴 수 있는 결정이다. docs/DECISIONS.md 참조.
# ─────────────────────────────────────────────────────────────────────────────
# ── 학습형: 거부 ──
User-agent: meta-externalagent
Disallow: /
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: anthropic-ai
Disallow: /
User-agent: Bytespider
Disallow: /
User-agent: CCBot
Disallow: /
# Google-Extended / Applebot-Extended 는 별도 UA 가 아니라 **robots.txt 전용 토큰**이다.
# (검색 크롤링은 Googlebot/Applebot 이 그대로 하고, AI 학습 사용만 여기서 거부된다)
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
# ── 인용형: 명시적 허용 ──
# 이들은 답변에 출처 링크를 남긴다. 막으면 GEO 유입 경로를 스스로 끊는 것이다.
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Perplexity-User
Allow: /
User-agent: Claude-User
Allow: /
User-agent: Claude-SearchBot
Allow: /
# ── 그 외 전부 ──
# facebookexternalhit(SNS 공유 카드)은 meta-externalagent 와 **별개**다 — 막으면 공유가 깨진다.
User-agent: *
Allow: /
# 로그인·인증 경로는 크롤링 대상이 아니다.
# ★ 2026-08-24 Meta 크롤러가 /auth/login 의 return_to 중첩 루프에 갇혀 하루 2,939건을 만들었다.
# 루프 자체는 고쳤지만(login_return_to), 애초에 크롤러가 올 이유가 없는 경로라 방어층으로 둔다.
Disallow: /auth
Disallow: /mypage
Sitemap: https://codebook.it/sitemap.xml