From f529804276d2fcc9227fba1deb6b95ec80452cdc Mon Sep 17 00:00:00 2001 From: brooke Date: Mon, 24 Feb 2025 14:20:21 -0500 Subject: [PATCH] bugfix: privatebin directorybot should be disallowed unless pb_public_directory is set to true --- robots.txt.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robots.txt.tmpl b/robots.txt.tmpl index 257998c..7da7ee1 100644 --- a/robots.txt.tmpl +++ b/robots.txt.tmpl @@ -2,7 +2,7 @@ User-agent: * Disallow: / {{ if eq (env "PB_PUBLIC_DIRECTORY") "true" }} +{{ else }} User-agent: PrivateBinDirectoryBot Disallow: / -{{ else }} -{{ end }} +{{ end }} \ No newline at end of file