From a7f6d8078b6edb937e0b95c5a051fec85b40cca4 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 894d573..1781f46 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: / + ''; + }; }; }; };