by huhtenberg · 1mo ago · 0 comments
Add this to nginx.conf (or drop as a text file into /etc/nginx/conf.d/) :
map $http_content_type $block_multipart { default 0; ~*^multipart/form-data 1; }
Then in every 'location /' block for every hosted server: location / {
if ($block_multipart) { return 403; }
...
}
Then restart nginx.No comments yet.