Don't disallow llms.txt and .md in robots.txt

They already send X-Robots-Tag: noindex, which keeps them out of search results while staying readable by AI agents. A robots.txt Disallow blocks fetching entirely (so the noindex is never seen) and blocks agents from llms.txt, defeating its purpose.
This commit is contained in:
Atanas Korchev
2026-05-29 20:25:50 +03:00
parent 61b2982f0d
commit f1b2024f82

View File

@@ -1528,8 +1528,6 @@ class Program
sb.AppendLine("User-agent: *");
sb.AppendLine("Content-Signal: ai-train=yes, search=yes, ai-input=yes");
sb.AppendLine($"Sitemap: {BaseUrl}/sitemap.xml");
sb.AppendLine("Disallow: /llms.txt");
sb.AppendLine("Disallow: /*.md$");
File.WriteAllText(filePath, sb.ToString(), new UTF8Encoding(false));
}
}