From 3a0b8e270deb22ef7097789876250bfb292f7f22 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Mon, 2 Sep 2024 22:52:19 +0200 Subject: [PATCH] bekkalokk/idp: Disallow bots --- hosts/bekkalokk/services/idp-simplesamlphp/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/bekkalokk/services/idp-simplesamlphp/default.nix b/hosts/bekkalokk/services/idp-simplesamlphp/default.nix index 894d5737..1781f464 100644 --- a/hosts/bekkalokk/services/idp-simplesamlphp/default.nix +++ b/hosts/bekkalokk/services/idp-simplesamlphp/default.nix @@ -202,6 +202,12 @@ in rewrite ^/simplesaml/(.*)$ /$1 redirect; return 404; ''; + "/robots.txt" = { + root = pkgs.writeTextDir "robots.txt" '' + User-agent: * + Disallow: / + ''; + }; }; }; };