From 67ac4126f22d721f8c91cfed69820c894d421f61 Mon Sep 17 00:00:00 2001 From: ellite Date: Tue, 12 Dec 2023 21:53:33 +0100 Subject: [PATCH] Disallow download of dabase through webserver --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index 1d62628..312ac55 100644 --- a/nginx.conf +++ b/nginx.conf @@ -37,6 +37,11 @@ http { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } + + location ~ \.db$ { + deny all; + return 403; + } } include /etc/nginx/conf.d/*.conf;