Security News > 2020 > August > How to limit file upload size on NGINX to mitigate DoS attacks
If you have an NGINX site that must allow users to upload files, try this configuration to help prevent possible Denial-of-Service attacks.
Out of the box, NGINX sets a limit of 1MB for file uploads.
What can you do when you need to allow users to upload more than a single MB to your NGINX site? You control it with the client max body size directive.
The first thing we're going to do is change the upload limit to 100MB in the nginx.
Your NGINX server is now a tiny bit safer from DoS attacks, while still allowing your users to upload files.
News URL
Related news
- New 'Loop DoS' Attack Impacts Hundreds of Thousands of Systems (source)
- New ‘Loop DoS’ attack may impact up to 300,000 online systems (source)
- Some 300,000 IPs vulnerable to this Loop DoS attack (source)
- Ivanti fixes VPN gateway vulnerability allowing RCE, DoS attacks (source)
- New HTTP/2 Vulnerability Exposes Web Servers to DoS Attacks (source)
- New HTTP/2 DoS attack can crash web servers with a single connection (source)