브라우저에서 보이는 내용이 크롤러에게도 보인다는 보장은 없다. HTML 원문에 본문이 들어 있는지 먼저 확인한다. Google도 모든 봇이 자바스크립트를 실행하지는 않는다고 적었다.
생성형 검색은 페이지 본문을 근거로 답을 만든다(02편). 본문이 자바스크립트로만 그려지면 그 크롤러가 렌더링하지 않는 한 빈 페이지와 같다. Googlebot은 headless Chromium으로 렌더링하지만 Google 문서는 그래도 서버 렌더링이나 사전 렌더링이 좋다고 권하며 그 이유로 "모든 봇이 자바스크립트를 실행할 수는 없다"를 들었다. 다른 AI 크롤러는 렌더링 여부를 공식 문서에 적지 않았다.
| 항목 | 확인할 것 |
|---|---|
| HTTP 상태 | 200인가. Google은 200이 아닌 페이지의 렌더링을 건너뛸 수 있다 |
| HTML 원문 본문 | 자바스크립트 없이 본문이 들어 있는가 |
<title>, meta description | 페이지 주제를 설명하는가 |
meta robots, X-Robots-Tag | noindex, nosnippet 등이 의도치 않게 붙지 않았는가 |
rel="canonical" | 대표 URL을 가리키는가. Google은 "강한 신호"로 보지만 다른 URL을 고를 수도 있다 |
lang | 언어가 맞는가 |
| 사이트맵 | 공개할 페이지와 최종 수정일이 있는가. Google은 사이트맵을 약한 신호로 본다 |
일반 HTTP 요청으로 페이지를 받아 보는 도구(tools/crawler_view.py):
def view(url):
status, headers, html = fetch(url) # urllib, 자바스크립트 실행 없음
p = parse(html)
text = p.visible_text # script·style·head를 뺀 텍스트
print(f" HTTP {status}, Content-Type: {headers.get('Content-Type')}, X-Robots-Tag: {headers.get('X-Robots-Tag', '(없음)')}")
print(f" lang={p.lang} title={p.title.strip()!r}")
print(f" description={'있음' if p.meta.get('description') else '없음'}, robots meta={p.meta.get('robots', '(없음)')}, canonical={p.canonical or '(없음)'}")
print(f" h1={[h for t, h in p.headings if t == 'h1']}, JSON-LD 블록={len(p.jsonld)}")
print(f" HTML 크기={len(html)}자, 보이는 텍스트={len(text)}자")
js-only.html은 원두 목록을 자바스크립트로 그리는 페이지다.
<div id="app">불러오는 중...</div>
<script>
document.getElementById("app").innerHTML =
"<h1>원두 목록</h1><ul>" + beans.map(b => `<li>${b.name}: ${b.price.toLocaleString()}원</li>`).join("") + "</ul>";
</script>
예제 사이트는 Docker의 nginx로 띄웠다(docker compose up -d, 포트 8088).
== http://localhost:8088/guides/hand-drip-ratio.html
HTTP 200, Content-Type: text/html; charset=utf-8, X-Robots-Tag: (없음)
lang=ko title='핸드드립 원두와 물 비율: 1:16에서 시작한다 | 숲길 커피'
description=있음, robots meta=(없음), canonical=https://forest-coffee.example/guides/hand-drip-ratio.html
h1=['핸드드립 원두와 물 비율: 1:16에서 시작한다'], JSON-LD 블록=1
HTML 크기=1561자, 보이는 텍스트=418자
보이는 텍스트 앞부분: 핸드드립 원두와 물 비율: 1:16에서 시작한다 / 작성: 숲길 커피 바리스타팀 · 게시 / 2026-11-01 / · 수정 / 2026-11-20 / 핸드드립은
== http://localhost:8088/js-only.html
HTTP 200, Content-Type: text/html; charset=utf-8, X-Robots-Tag: (없음)
lang=ko title='원두 목록 | 숲길 커피'
description=없음, robots meta=(없음), canonical=(없음)
h1=[], JSON-LD 블록=0
HTML 크기=503자, 보이는 텍스트=9자
보이는 텍스트 앞부분: 불러오는 중...
== http://localhost:8088/guides/hand-drip-ratio-before.html
HTTP 200, Content-Type: text/html; charset=utf-8, X-Robots-Tag: (없음)
lang=ko title='커피 이야기'
description=없음, robots meta=(없음), canonical=(없음)
h1=[], JSON-LD 블록=0
HTML 크기=604자, 보이는 텍스트=426자
보이는 텍스트 앞부분: 커피 이야기 / 커피는 많은 사람들이 사랑하는 음료입니다. 아침에 마시는 한 잔의 커피는 하루를 시작하는 특별한 의식이 되기도 합니다. 저희 숲길
== http://localhost:8088/sitemap.xml (HTTP 200)
https://forest-coffee.example/ 2026-11-20
https://forest-coffee.example/beans/ethiopia-yirgacheffe.html 2026-11-15
https://forest-coffee.example/guides/hand-drip-ratio.html 2026-11-20
https://forest-coffee.example/faq.html 2026-11-10
https://forest-coffee.example/about.html 2026-11-01
같은 js-only.html을 Chrome에서 열고 화면 텍스트를 읽은 결과:
# Chrome에서 http://localhost:8088/js-only.html 을 연 뒤 document.body.innerText
원두 목록
에티오피아 예가체프 200g: 18,000원
콜롬비아 수프리모 200g: 16,000원
hand-drip-ratio-before.html)는 본문은 보이지만 description, canonical, h1이 없다. 제목도 "커피 이야기"라 무엇에 관한 페이지인지 알기 어렵다.구현 코드: crawler_view.py, site/js-only.html, docker-compose.yml
noindex나 X-Robots-Tag가 운영에 남는다.