fix(seo): add HSTS headers, clean crawler directives, and exclude /links from sitemap

This commit is contained in:
ssbg04 committed 2026-10-22 23:16:44 +08:00
1 parent 3c0654e030
commit 33a3f997e6
4 files changed
+8 -16

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
/*
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Referrer-Policy: strict-origin-when-cross-origin
-15
View File
@@ -14,20 +14,5 @@ User-agent: Googlebot-Image
Disallow: /gallery
Disallow: /gallery/
# Allow specific crawlers
User-agent: Googlebot
Allow: /
Disallow: /api/
Disallow: /.vercel/
Disallow: /.astro/
Disallow: /maintenance
Disallow: /gallery
Disallow: /gallery/
User-agent: Bingbot
Allow: /
Disallow: /gallery
Disallow: /gallery/
# Reference to sitemap
Sitemap: https://crischarles.com/sitemap-index.xml