summaryrefslogtreecommitdiff
path: root/RobotsTxtGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RobotsTxtGenerator.cs')
-rw-r--r--RobotsTxtGenerator.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/RobotsTxtGenerator.cs b/RobotsTxtGenerator.cs
new file mode 100644
index 0000000..8417f6f
--- /dev/null
+++ b/RobotsTxtGenerator.cs
@@ -0,0 +1,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();
+ }
+}