Code Snippet </> Info
Snippet Name: Protect against denial-of-service (DOS) attacks by limiting file upload size
Description: One method to help protect your server against DOS attacks involves limiting the maximum allowable size for file uploads. Here, we are limiting file upload size to 10240000 bytes, which is equivalent to around 10 megabytes. For this rule, file sizes are expressed in bytes.
Note: Note: This code is only useful if you actually allow users to upload files to your site. You can adjust the LimitRequestBody size as needed.
Author:
Last Modified: 2014-05-18 18:19:29
Language: .htaccess
Highlight Mode: html
|
Copy Codes: Use Free Notepad ++ |
|
Snap HTML Code Editor: Paste the source code, make changes and instantly see it in live preview. Snap HTML Code Editor
|
|
Copied To Clipboard!
# protect against DOS attacks by limiting file upload size
LimitRequestBody 10240000
|