From 2ca9eaa083ea19fd4d7a3e72eeea995eb788d920 Mon Sep 17 00:00:00 2001 From: Thilina Date: Sun, 27 Jun 2021 16:48:38 +0200 Subject: [PATCH] Soft fix to prevent directory listing --- .gitignore | 2 ++ app/data/.htaccess | 2 ++ app/data/index.php | 1 + 3 files changed, 5 insertions(+) create mode 100644 app/data/.htaccess create mode 100644 app/data/index.php diff --git a/.gitignore b/.gitignore index 8e0da66e..a12cc9be 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,8 @@ keys.dev.pub /app/icehrm.key /app/data/*.* /app/data/keys/* +!/app/data/index.php +!/app/data/.htaccess icehrm.key cache.properties node_modules/* diff --git a/app/data/.htaccess b/app/data/.htaccess new file mode 100644 index 00000000..ff2beb84 --- /dev/null +++ b/app/data/.htaccess @@ -0,0 +1,2 @@ +order deny,allow +deny from all diff --git a/app/data/index.php b/app/data/index.php new file mode 100644 index 00000000..b3d9bbc7 --- /dev/null +++ b/app/data/index.php @@ -0,0 +1 @@ +