Browse Source

recreate fix for #2617 on correct branch

tags/3.5
Ben Roberts 4 years ago
parent
commit
22de27327c
3 changed files with 26 additions and 5 deletions
  1. +8
    -1
      .htaccess
  2. +9
    -2
      util/.htaccess
  3. +9
    -2
      view/.htaccess

+ 8
- 1
.htaccess View File

@@ -4,7 +4,14 @@ AddType audio/ogg .oga
#AddHandler php53-cgi .php

<FilesMatch "\.(out|log)$">
Deny from all
<IfModule authz_host_module>
#Apache 2.4
Require all denied
</IfModule>
<IfModule !authz_host_module>
#Apache 2.2
Deny from all
</IfModule>
</FilesMatch>

<IfModule mod_rewrite.c>


+ 9
- 2
util/.htaccess View File

@@ -1,5 +1,12 @@
Options -Indexes

# Remove the following line or modify it to run the string translator utility
Deny from all
# Remove the following lines or modify it to run the string translator utility
<IfModule authz_host_module>
#Apache 2.4
Require all denied
</IfModule>
<IfModule !authz_host_module>
#Apache 2.2
Deny from all
</IfModule>


+ 9
- 2
view/.htaccess View File

@@ -1,3 +1,10 @@
<FilesMatch "\.tpl">
Deny from all
</FilesMatch>
<IfModule authz_host_module>
#Apache 2.4
Require all denied
</IfModule>
<IfModule !authz_host_module>
#Apache 2.2
Deny from all
</IfModule>
</FilesMatch>

Loading…
Cancel
Save