Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc/user
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-10-24 06:31:42 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-24 06:31:42 +0400
commitf117c260d7ec356f29dd59bc6a43ee72a66b1c0a (patch)
tree09c1c94e390724ffa9abfb65227588b2138a4f93 /misc/user
parent0379e1efb1bfea59e3f281b79f4dd4fe06d475a8 (diff)
Fix c
Diffstat (limited to 'misc/user')
-rw-r--r--misc/user/.htaccess32
1 files changed, 26 insertions, 6 deletions
diff --git a/misc/user/.htaccess b/misc/user/.htaccess
index 8128bcd356..a4d7af8795 100644
--- a/misc/user/.htaccess
+++ b/misc/user/.htaccess
@@ -1,7 +1,27 @@
-<Files "*.png">
- Allow from all
+<Files ~ "\.(php|php4|php5|inc|tpl|in|twig)$">
+<IfModule mod_access.c>
+Deny from all
+</IfModule>
+<IfModule !mod_access_compat>
+<IfModule mod_authz_host.c>
+Deny from all
+</IfModule>
+</IfModule>
+<IfModule mod_access_compat>
+Deny from all
+</IfModule>
+</Files>
+<Files ~ "\.(test\.php|gif|ico|jpg|png|svg|js|css|swf)$">
+<IfModule mod_access.c>
+Allow from all
+</IfModule>
+<IfModule !mod_access_compat>
+<IfModule mod_authz_host.c>
+Allow from all
+</IfModule>
+</IfModule>
+<IfModule mod_access_compat>
+Allow from all
+</IfModule>
+Satisfy any
</Files>
-
-<Files "*.svg">
- Allow from all
-</Files> \ No newline at end of file