diff --git a/app/cache/.htaccess b/app/cache/.htaccess index 78d659062b..0e36f6ec23 100644 --- a/app/cache/.htaccess +++ b/app/cache/.htaccess @@ -1,5 +1,10 @@ -order deny,allow -deny from all + + Require all denied + + + Order deny,allow + Deny from all + # pChart generated files should be allowed order allow,deny diff --git a/app/home/.htaccess b/app/home/.htaccess index 96bfaad133..28d7b6df53 100644 --- a/app/home/.htaccess +++ b/app/home/.htaccess @@ -1,3 +1,9 @@ - deny from all + + Require all denied + + + Order allow,deny + Deny from all + \ No newline at end of file diff --git a/main/admin/archive_cleanup.php b/main/admin/archive_cleanup.php index b099c635b9..957cb7e4df 100755 --- a/main/admin/archive_cleanup.php +++ b/main/admin/archive_cleanup.php @@ -47,8 +47,13 @@ if ($form->validate()) { $archive_path = api_get_path(SYS_ARCHIVE_PATH); $htaccess = << + Require all denied + + + Order deny,allow + Deny from all + # pChart generated files should be allowed order allow,deny diff --git a/main/admin/user_import.php b/main/admin/user_import.php index 04bbf2eeac..79c3237a75 100644 --- a/main/admin/user_import.php +++ b/main/admin/user_import.php @@ -41,8 +41,13 @@ function createDirectory($path = null) mkdir($data, api_get_permissions_for_new_directories()); $block = ' -Order allow,deny -Deny from all + + Require all denied + + + Order allow,deny + Deny from all + Options -Indexes'; diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index 22d00bd5c7..1c2ff12568 100755 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -173,8 +173,13 @@ class AddCourse "AuthName AllowLocalAccess AuthType Basic - order deny,allow - deny from all + + Require all denied + + + Order deny,allow + Deny from all + php_flag zlib.output_compression off" );