summaryrefslogtreecommitdiff
path: root/RobotsTxtGenerator.cs
blob: 8417f6f83d791796633622511ee6145052162eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
	}
}