diff options
Diffstat (limited to 'Services/RobotsTxtGenerator.cs')
-rw-r--r-- | Services/RobotsTxtGenerator.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Services/RobotsTxtGenerator.cs b/Services/RobotsTxtGenerator.cs new file mode 100644 index 0000000..26e5cee --- /dev/null +++ b/Services/RobotsTxtGenerator.cs @@ -0,0 +1,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(); + } +} |