자산 색인 Header

X-Robots-Tag Header 플래너

자산 규칙을 선택하고 출시 전 Nginx, Apache, Netlify, Vercel용 X-Robots-Tag 설정을 생성합니다.

준비됨100/100
심각0
경고0
준비됨2
규칙2

생성된 설정

location ~* \.(pdf)$ {
  add_header X-Robots-Tag "noindex, nofollow, noarchive" always;
}

location ~* \.(jpg|png|webp)$ {
  add_header X-Robots-Tag "noindex, noimageindex" always;
}

보고서 미리보기

# X-Robots-Tag Header 계획

- 프로젝트: Website launch assets
- Bot 대상: all
- 규칙: 2
- 심각: 0
- 경고: 0
- 준비됨: 2


## Nginx
```nginx
location ~* \.(pdf)$ {
  add_header X-Robots-Tag "noindex, nofollow, noarchive" always;
}

location ~* \.(jpg|png|webp)$ {
  add_header X-Robots-Tag "noindex, noimageindex" always;
}
```

## Apache
```apache
# Requires mod_headers

<FilesMatch "\.(pdf)$">
  Header set X-Robots-Tag "noindex, nofollow, noarchive"
</FilesMatch>

<FilesMatch "\.(jpg|png|webp)$">
  Header set X-Robots-Tag "noindex, noimageindex"
</FilesMatch>
```

## Netlify
```text
/downloads/*.pdf
  X-Robots-Tag: noindex, nofollow, noarchive

/assets/originals/*
  X-Robots-Tag: noindex, noimageindex
```

## Vercel
```json
{
  "headers": [
    {
      "source": "/downloads/(.*).pdf",
      "headers": [
        {
          "key": "X-Robots-Tag",
          "value": "noindex, nofollow, noarchive"
        }
      ]
    },
    {
      "source": "/assets/originals/(.*)",
      "headers": [
        {
          "key": "X-Robots-Tag",
          "value": "noindex, noimageindex"
        }
      ]
    }
  ]
}
```