生成常见 robots.txt 规则模板与 sitemap 引用行,用于站点上线前的基线配置。
User-agent: * Allow: / Sitemap: https://example.com/sitemap.xml
User-agent: GPTBot Allow: / User-agent: OAI-SearchBot Allow: / User-agent: PerplexityBot Allow: /
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-11-27</lastmod>
</url>
</urlset>
robots.txt 规则会影响搜索引擎与 AI 爬虫的抓取行为。放行或屏蔽爬虫属于业务判断,工具只生成模板,不替你决定策略。修改前建议对照当前文件逐条比对。