From 1e81cc796a68ff68ab90aff583b3645d368608e0 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 26 Oct 2020 09:10:14 +0100 Subject: [PATCH] deny robots via Caddyfile --- docker/Caddyfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker/Caddyfile b/docker/Caddyfile index 2956583..152ffe4 100644 --- a/docker/Caddyfile +++ b/docker/Caddyfile @@ -1,9 +1,20 @@ # https://caddyserver.com/docs/caddyfile { - admin off + admin off } {$HOSTNAME} { tls {$LETSENCRYPT_EMAIL} + + header { + X-Robots-Tag "none" + } + + respond /robots.txt 200 { + body "User-agent: * +Disallow: /" + close + } + reverse_proxy inventory:8000 }