Skip to content

Commit e864127

Browse files
committed
Security: Add redirect to .htaccess to avoid direct access to bigupload temporary upload directory
1 parent f3d62b6 commit e864127

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ AddType application/font-woff .woff .woff2
117117
# Header always set Content-Security-Policy "upgrade-insecure-requests;"
118118
#</IfModule>
119119

120+
# Disallow direct access to /main/inc/lib/javascript/bigupload/files
121+
RedirectMatch 403 ^/main/inc/lib/javascript/bigupload/files
122+
123+
# Disallow MIME sniffing to prevent XSS from unknown/incorrect file extensions
120124
<IfModule mod_headers.c>
121125
Header always set X-Content-Type-Options nosniff
122126
</IfModule>

0 commit comments

Comments
 (0)