My module is overriding the rate limiting module status for POST requests.

Maxim Dounin mdounin at mdounin.ru
Sun Dec 4 19:51:40 UTC 2022


Hello!

On Sun, Dec 04, 2022 at 05:29:29PM +0000, Jeremy Cocks via nginx wrote:

> Actually analysing the log files of this, it seems the rate limiting module
> never kicks in for POST requests, my module just sets the status and bails.
> Assuming this is because POST actually needs to write content?

Your observation is wrong.  Rate limiting as implemented in the 
limit_req module does not distinguish between different request 
methods and always works after reading the request headers.

-- 
Maxim Dounin
http://mdounin.ru/



More information about the nginx mailing list