資産インデックス 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"
        }
      ]
    }
  ]
}
```