Welcome! Log In Create A New Profile

Advanced

Limit number of HTTP POST requests

Posted by cruelsymbol 
Limit number of HTTP POST requests
June 09, 2009 02:43PM
Is there any nginx module I could use to limit the number of HTTP POSTs from users to a certain limit. Say like 100 per 10 seconds from a single IP
Re: Limit number of HTTP POST requests
June 09, 2009 04:02PM
Have you tried http://wiki.nginx.org/NginxHttpLimitReqModule?

--
Jim Ohlstein
Re: Limit number of HTTP POST requests
June 09, 2009 10:27PM
I went thru its wiki page but i didnt see any place where it explicitly limits POST. I think GET would also get affected by this. any thoughts?
Re: Limit number of HTTP POST requests
June 09, 2009 10:46PM
I would think it would be all requests also.There isn't anything specific for GET, HEAD, POST, PUT etc, to my knowledge. It probably wouldn't be terribly hard to implement if you know C (but I can't help you there :p). You can restrict your limit to a "location" block which can be a single script if that helps.

--
Jim Ohlstein
Re: Limit number of HTTP POST requests
June 10, 2009 11:17PM
thanks. i guess i'll just use snort to help me out this it then.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready