Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Protect against denial-of-service (DOS) attacks by limiting file upload size


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 ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying
Copied To Clipboard!

# protect against DOS attacks by limiting file upload size LimitRequestBody 10240000


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library