更新 在robots.txt.ts屏蔽aibot

This commit is contained in:
mckero authored and GitHub committed 2026-08-02 01:09:11 +08:00
1 parent 77f401cd00
commit 7a43bd3646
1 file changed
+6
+6
View File
@@ -4,6 +4,12 @@ const robotsTxt = `
User-agent: * User-agent: *
Disallow: /_astro/ Disallow: /_astro/
Disallow: /archive/ Disallow: /archive/
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: PerplexityBot
Disallow: /
Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href} Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href}
`.trim(); `.trim();