Header ควบคุมดัชนีสินทรัพย์
ตัววางแผน X-Robots-Tag Header
เลือกกฎของสินทรัพย์ แล้วสร้าง config X-Robots-Tag สำหรับ Nginx, Apache, Netlify และ Vercel ก่อนเปิดเว็บไซต์
พร้อม100/100
ร้ายแรง0
คำเตือน0
พร้อม2
กฎ2
config ที่สร้าง
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"
}
]
}
]
}
```Asset indexing rules
X-Robots-Tag Generator
Generate X-Robots-Tag header rules for PDFs, images, downloads, and other assets. Plan noindex, nofollow, noarchive, and noimageindex directives for Nginx, Apache, Netlify, and Vercel.
Server snippets
Generate Nginx, Apache, Netlify, and Vercel rules from one policy.
Asset-specific directives
Choose noindex, nofollow, noarchive, and noimageindex for different file groups.
Safer publishing
Avoid accidentally indexing private PDFs, originals, or temporary assets.