From e21aec5822395e8daec8ecc50523d9b2c827cd76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Sun, 10 Feb 2019 20:36:26 +0100 Subject: [PATCH] Block access to file #.*# Used to contain sensitive data --- h5bp/location/security_file_access.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5bp/location/security_file_access.conf b/h5bp/location/security_file_access.conf index fcf9204..9c3a8b0 100644 --- a/h5bp/location/security_file_access.conf +++ b/h5bp/location/security_file_access.conf @@ -37,6 +37,6 @@ location ~* /\.(?!well-known\/) { # include: configuration files, files that contain metadata about the # project (e.g.: project dependencies), build scripts, etc.. -location ~* (?:\.(?:bak|conf|dist|fla|in[ci]|log|orig|psd|sh|sql|sw[op])|~)$ { +location ~* (?:#.*#|\.(?:bak|conf|dist|fla|in[ci]|log|orig|psd|sh|sql|sw[op])|~)$ { deny all; }