mirror of
https://github.com/typemill/typemill.git
synced 2025-08-12 09:04:37 +02:00
Hotfix 1.5.3.1 improve mimetype checks on file upload
This commit is contained in:
12
.htaccess
12
.htaccess
@@ -47,13 +47,15 @@ RewriteRule ^(.*)?\.yml$ - [F,L]
|
||||
Rewriterule ^(.*)?\.yaml$ - [F,L]
|
||||
RewriteRule ^(.*)?\.txt$ - [F,L]
|
||||
RewriteRule ^(.*)?\.example$ - [F,L]
|
||||
RewriteRule ^(.*/)?\.git+ - [F,L]
|
||||
RewriteRule ^(.*/)?\.md - [F,L]
|
||||
RewriteRule ^(.*/)?\.php - [F,L]
|
||||
RewriteRule ^(.*/)?\.twig - [F,L]
|
||||
RewriteRule ^(.*)?\.git+ - [F,L]
|
||||
RewriteRule ^(.*)?\.md - [F,L]
|
||||
RewriteCond %{REQUEST_URI} !/index\.php
|
||||
RewriteRule ^(.*)?\.ph - [F,L]
|
||||
RewriteRule ^(.*)?\.twig - [F,L]
|
||||
RewriteRule ^(media\/tmp\/) - [F,L]
|
||||
|
||||
# Block access to specific files in the root folder
|
||||
RewriteRule ^(licence\.md|readme\.md|composer\.lock|composer\.json|\.htaccess)$ error [F,L]
|
||||
RewriteRule ^(composer\.lock|composer\.json|\.htaccess)$ error [F,L]
|
||||
|
||||
# block files and folders starting with a dot except for the .well-known folder (Let's Encrypt)
|
||||
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
|
||||
|
Reference in New Issue
Block a user