From e2bd041ba2c460bdf673896d6c8399f5dc55f635 Mon Sep 17 00:00:00 2001 From: rafael Date: Mon, 27 Jan 2020 11:03:42 +0100 Subject: [PATCH 1/2] adding .htaccess files --- pandora_console/.htaccess | 2 ++ pandora_console/attachment/.htaccess | 13 ++++++++++--- pandora_console/images/.htaccess | 5 +++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 pandora_console/.htaccess create mode 100644 pandora_console/images/.htaccess diff --git a/pandora_console/.htaccess b/pandora_console/.htaccess new file mode 100644 index 0000000000..593204bd27 --- /dev/null +++ b/pandora_console/.htaccess @@ -0,0 +1,2 @@ +# pandora disable listing +Options -Indexes \ No newline at end of file diff --git a/pandora_console/attachment/.htaccess b/pandora_console/attachment/.htaccess index d6a661a7f8..9459307ce2 100644 --- a/pandora_console/attachment/.htaccess +++ b/pandora_console/attachment/.htaccess @@ -1,3 +1,10 @@ -Order deny,allow -Deny from All -Allow from localhost \ No newline at end of file +#Order deny,allow +#Deny from All +#Allow from localhost + +#pandora disable phpexec + +Deny from all +Allow from localhost + +php_flag engine off diff --git a/pandora_console/images/.htaccess b/pandora_console/images/.htaccess new file mode 100644 index 0000000000..4b551eebe2 --- /dev/null +++ b/pandora_console/images/.htaccess @@ -0,0 +1,5 @@ +#pandora disable phpexec + +Deny from all + +php_flag engine off From c200f57856d1a3b7c0525c82bb3818230930c5fa Mon Sep 17 00:00:00 2001 From: rafael Date: Fri, 31 Jan 2020 18:45:53 +0100 Subject: [PATCH 2/2] adding .txt restreriction for webchat --- pandora_console/attachment/.htaccess | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/attachment/.htaccess b/pandora_console/attachment/.htaccess index 9459307ce2..71f7bf9540 100644 --- a/pandora_console/attachment/.htaccess +++ b/pandora_console/attachment/.htaccess @@ -3,8 +3,9 @@ #Allow from localhost #pandora disable phpexec - + Deny from all Allow from localhost - + php_flag engine off +