blob: 26e5ceebf4f2ca628c6b2d7110bad206470dc9e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
using System.Text;
namespace MyDarling.Services;
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();
}
}
|