From 929eccc88d35f1fbe76885819bd8a9de082f9732 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Mon, 27 Jul 2020 14:44:02 +0200 Subject: [PATCH] Protect directory listing of /mode_modules --- node_modules/.htaccess | 21 +++++++++++++++++++++ node_modules/web.config | 31 +++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 node_modules/.htaccess create mode 100644 node_modules/web.config diff --git a/node_modules/.htaccess b/node_modules/.htaccess new file mode 100644 index 000000000..af1631e4f --- /dev/null +++ b/node_modules/.htaccess @@ -0,0 +1,21 @@ + +# Apache 2.4 + +Require all denied + + Require all granted + + + +# Apache 2.2 + +deny from all +Satisfy All + + Order Allow,Deny + Allow from all + + + +# Apache 2.2 and 2.4 +IndexIgnore * diff --git a/node_modules/web.config b/node_modules/web.config new file mode 100644 index 000000000..9667892e3 --- /dev/null +++ b/node_modules/web.config @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +