aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
Diffstat (limited to 'p')
-rw-r--r--p/.htaccess7
-rw-r--r--p/themes/.htaccess7
2 files changed, 7 insertions, 7 deletions
diff --git a/p/.htaccess b/p/.htaccess
index 40dd7e51f..70bc34710 100644
--- a/p/.htaccess
+++ b/p/.htaccess
@@ -1,10 +1,3 @@
-<IfModule mod_authz_core.c>
- # Deny files starting with a dot, or without extension (except some), or not in a whitelist of extensions
- <FilesMatch "^\.|^(?!oidc)[^.]+$|\.(?!css|gif|html|ico|js|php|png|svg|txt|woff|woff2)[^.]*$">
- Require all denied
- </FilesMatch>
-</IfModule>
-
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
diff --git a/p/themes/.htaccess b/p/themes/.htaccess
index 0e78aab3a..42732cd38 100644
--- a/p/themes/.htaccess
+++ b/p/themes/.htaccess
@@ -1,3 +1,10 @@
+<IfModule mod_authz_core.c>
+ # Deny files without extension or with specific extensions
+ <FilesMatch "^[^.]+$|\.(json|md|scss|sh)$">
+ Require all denied
+ </FilesMatch>
+</IfModule>
+
<IfModule mod_mime.c>
AddType font/woff .woff
AddType font/woff2 .woff2