# GrainBook AI学习工具 - Robots.txt # https://www.robotstxt.org/robotstxt.html # 允许所有搜索引擎访问 User-agent: * Allow: / # 禁止访问敏感和系统目录 Disallow: /api/ Disallow: /admin/ Disallow: /private/ Disallow: /.well-known/ Disallow: /_next/ Disallow: /node_modules/ Disallow: /src/ Disallow: /.git/ # 禁止访问临时和缓存文件 Disallow: /tmp/ Disallow: /cache/ Disallow: /temp/ Disallow: /*.tmp$ Disallow: /*.cache$ Disallow: /*.log$ # 禁止访问开发环境文件 Disallow: /dev/ Disallow: /test/ Disallow: /testing/ Disallow: /staging/ # 特定爬虫优化设置 User-agent: Googlebot Crawl-delay: 1 Allow: / User-agent: Bingbot Crawl-delay: 2 Allow: / User-agent: Slurp Crawl-delay: 3 Allow: / User-agent: DuckDuckBot Crawl-delay: 1 Allow: / # 阻止恶意爬虫 User-agent: AhrefsBot Disallow: / User-agent: MJ12bot Disallow: / User-agent: DotBot Disallow: / # SEO友好设置 # 指向sitemap位置 Sitemap: https://grainbook.com/sitemap.xml # 允许访问重要的静态资源 Allow: /public/ Allow: /images/ Allow: /avatars/ Allow: /icons/ Allow: /*.css$ Allow: /*.js$ Allow: /*.svg$ Allow: /*.png$ Allow: /*.jpg$ Allow: /*.jpeg$ # 针对AI学习工具的特殊规则 # 鼓励搜索引擎索引内容页面 Allow: /library/ Allow: /summaries/ Allow: /about/ Allow: /features/ Allow: /pricing/ # 缓存和性能优化 # 对于图片延迟加载,允许访问thumbnails Allow: /thumbnails/ # 站点地图和元数据访问 Allow: /sitemap.xml Allow: /sitemap.xml.gz Allow: /robots.txt # 最后更新时间:2025-01-28 # 针对GrainBook AI内容总结工具优化