From da1e2c7096384c296bc7c01f1c1b8c84fda23ced Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 6 Sep 2014 06:49:42 +0200 Subject: [PATCH] Add more paranoia --- code/web/public_php/ams/files/.htaccess | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/code/web/public_php/ams/files/.htaccess b/code/web/public_php/ams/files/.htaccess index 6e11c1a83..65a3a44db 100644 --- a/code/web/public_php/ams/files/.htaccess +++ b/code/web/public_php/ams/files/.htaccess @@ -1,8 +1,20 @@ +SetHandler none SetHandler default-handler -Options -Indexes Options -ExecCGI + + php_flag engine off + +RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo +Options -Indexes DirectoryIndex disabled - + + SetHandler none + SetHandler default-handler + Options -ExecCGI + + php_flag engine off + + RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo ForceType application/octet-stream Header set Content-Disposition attachment