From f458c3a4ae4db5956ede4d705a3d8aee28d79a25 Mon Sep 17 00:00:00 2001 From: Dominik Ulrich Date: Wed, 1 Nov 2023 14:46:18 +0100 Subject: [PATCH 1/2] Do not allow dangerous files in js folder --- js/.htaccess | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/js/.htaccess b/js/.htaccess index 3819b90a129c7..c6274695ba648 100755 --- a/js/.htaccess +++ b/js/.htaccess @@ -7,3 +7,25 @@ +# Apache 2.2 + + Order deny,allow + Deny from all + + Allow from all + + + Allow from all + + + +# Apache 2.4 + + Require all denied + + Require all granted + + + Require all granted + + From 909dfdbd501e238d79ba5a2cc68e11f3b9e70eec Mon Sep 17 00:00:00 2001 From: Dominik Ulrich Date: Wed, 1 Nov 2023 23:34:09 +0100 Subject: [PATCH 2/2] Add more allowed extensions --- js/.htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/.htaccess b/js/.htaccess index c6274695ba648..d12f09c417ad4 100755 --- a/js/.htaccess +++ b/js/.htaccess @@ -11,7 +11,7 @@ Order deny,allow Deny from all - + Allow from all @@ -22,7 +22,7 @@ # Apache 2.4 Require all denied - + Require all granted