Skip to content

Commit f1b2024

Browse files
committed
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.
1 parent 61b2982 commit f1b2024

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

RadzenBlazorDemos.Tools/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,8 +1528,6 @@ static void WriteRobotsTxt(string filePath)
15281528
sb.AppendLine("User-agent: *");
15291529
sb.AppendLine("Content-Signal: ai-train=yes, search=yes, ai-input=yes");
15301530
sb.AppendLine($"Sitemap: {BaseUrl}/sitemap.xml");
1531-
sb.AppendLine("Disallow: /llms.txt");
1532-
sb.AppendLine("Disallow: /*.md$");
15331531
File.WriteAllText(filePath, sb.ToString(), new UTF8Encoding(false));
15341532
}
15351533
}

0 commit comments

Comments
 (0)