From 93de0bea4901577d8616e54f7fe58856a113db29 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 18 Jul 2020 12:05:34 +0200 Subject: [PATCH] Prevent access to template/cache https://github.com/NamelessMC/Nameless/commit/9bd1433f0e18b9de5472480505e9d216ecbc0d1e --- nginx_web/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx_web/nginx.conf b/nginx_web/nginx.conf index b708da8..d2809b1 100644 --- a/nginx_web/nginx.conf +++ b/nginx_web/nginx.conf @@ -31,6 +31,10 @@ http { try_files $uri $uri/ /index.php?$args; } + location ~ \.(tpl|cache)$ { + return 403; + } + location = /robots.txt { allow all; log_not_found off;