Skip to content
Snippets Groups Projects
Unverified Commit 2348546b authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #14158 from demeritcowboy/deny-for-real

#913 - update autogenerated .htaccess for apache 2.4
parents 7c295e89 b1de9132
Branches
Tags
No related merge requests found
......@@ -526,8 +526,16 @@ class CRM_Utils_File {
if (!empty($dir) && is_dir($dir)) {
$htaccess = <<<HTACCESS
<Files "*">
Order allow,deny
Deny from all
# Apache 2.2
<IfModule !authz_core_module>
Order allow,deny
Deny from all
</IfModule>
# Apache 2.4+
<IfModule authz_core_module>
Require all denied
</IfModule>
</Files>
HTACCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment