From 128d0a6140ac96f1de71e0161f88c1345fa7a210 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 16 Apr 2020 19:40:57 +0530 Subject: [PATCH] Caddyfile: protect data dir Signed-off-by: Harsh Shandilya --- Caddyfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Caddyfile b/Caddyfile index 4a76f48..bfba6fe 100644 --- a/Caddyfile +++ b/Caddyfile @@ -96,6 +96,11 @@ https://mail.msfjarvis.dev { if {path} ends_with / to {dir}/index.php } + status 403 /forbidden + rewrite { + r ^/.*/data/?$ + to /forbidden + } } https://mc.msfjarvis.dev {