Answer the question
In order to leave comments, you need to log in
How to protect Apache from slow post attack?
Good day!
Prompt as practically to protect Apache from this misfortune. The options below and the module do not help:
<IfModule reqtimeout_module>
# Allow 10 seconds to receive the request including the headers and 30 seconds for receiving the request body:
RequestReadTimeout header=10 body=30
# Allow at least 10 seconds to receive the request body. If the client sends data, increase the timeout by 1 second for every 1000 bytes received, with no upper limit for the timeout (exept for the limit given indirectly by LimitRequestBody):
RequestReadTimeout body=10,MinRate=1000
# Allow at least 10 seconds to receive the request including the headers. If the client sends data, increase the timeout by 1 second for every 500 bytes received. But do not allow more than 30 seconds for the request including the headers:
RequestReadTimeout header=10-30,MinRate=500
# Usually, a server should have both header and body timeouts configured. If a common configuration is used for http and https virtual hosts, the timeouts should not be set too low:
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
</IfModule>
<IfModule reqtimeout_module>
# Usually, a server should have both header and body timeouts configured. If a common configuration is used for http and https virtual hosts, the timeouts should not be set too low:
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
</IfModule>
Answer the question
In order to leave comments, you need to log in
In short: install the mod_reqtimeout + mod_qos + mod_security modules and configure them, this will also, after configuration, help get rid of other types of attacks.
More details here: https://www.acunetix.com/blog/articles/slow-http-d...
For Windows, binaries of current versions and additional ones. extensions built under different VS can be found here https://www.apachelounge.com/download/
Put nginx in proxy mode in front of it and that's it. The latter is immune (in general) from such.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question