How to limit the size of request headers? #3696
-
Some malicious requests from scripts have very huge header sizes. How to set a limit or check these header sizes? It would be great to quickly end the TCP connection and get the IP address to add it to an IP block list. |
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
Jul 1, 2024
Replies: 1 comment
-
The limit that currently exists is the max_buf_size. If headers are not "complete" within the max size, then an error is returned and the connection closed. A potential new builder option is planned that would allow setting a header size limit smaller than the max buf size, but does not exist at the moment. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dswij
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The limit that currently exists is the max_buf_size. If headers are not "complete" within the max size, then an error is returned and the connection closed.
A potential new builder option is planned that would allow setting a header size limit smaller than the max buf size, but does not exist at the moment.