0
0
MyDarling/RobotsTxtGenerator.cs
2023-06-14 08:03:29 +03:00

18 lines
448 B
C#

using System.Text;
namespace MyDarling.Controllers;
public class RobotsTxtGenerator : IRobotsTxtGenerator
{
public string GetRobotsText()
{
StringBuilder stringBuilder = new();
stringBuilder.AppendLine("user-agent: *");
stringBuilder.AppendLine("Disallow: /freedom");
stringBuilder.AppendLine("Disallow: /Account/");
stringBuilder.AppendLine("Disallow: /account/");
return stringBuilder.ToString();
}
}