From e35c16b403a23b3c5f5a584ab0e8a8b736edc5f0 Mon Sep 17 00:00:00 2001 From: astra Date: Wed, 25 Sep 2024 01:16:50 +0100 Subject: [PATCH] caddy (snippets): add fuckbots --- etc/caddy/snippets.caddyfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etc/caddy/snippets.caddyfile b/etc/caddy/snippets.caddyfile index 3e3de19..4c0da0d 100644 --- a/etc/caddy/snippets.caddyfile +++ b/etc/caddy/snippets.caddyfile @@ -38,3 +38,13 @@ Disallow: /" } } +(fuckbots) { + @fuckbots { + header_regexp User-Agent "(GoogleOther|Googlebot|Amazonbot|PetalBot|bingbot|YandexBot)" + header Host git.zio.sh + } + + handle @fuckbots { + respond Gone 410 + } +}