18 lines
448 B
C#
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();
|
|
}
|
|
}
|