mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user