# HttpLimitReqModule logging and not denying

**URL:** <https://www.ruby-forum.com/t/httplimitreqmodule-logging-and-not-denying/207803>\
**Category:** NGINX\
**Created:** [June 3, 2011, 4:00am UTC](https://www.ruby-forum.com/t/httplimitreqmodule-logging-and-not-denying/207803 "2011-06-03T04:00:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 3, 2011, 4:00am UTC](https://www.ruby-forum.com/t/httplimitreqmodule-logging-and-not-denying/207803/1 "2011-06-03T04:00:53Z")

</div>

Hi All,

I am trying to restrict frequent requests but not block it completely.  
I’ve gotten HttpLimitReqModule to work but this just blocks the requests  
that exceed the limit. Instead I would like to be able to log it into a  
table and then forward all such offenders to a recaptcha test  
([GitHub - yaoweibin/nginx\_http\_recaptcha\_module: support google's reCAPTCHA with Nginx](https://github.com/yaoweibin/nginx_http_recaptcha_module) autor:weibin  
yao). My C skills are not what they used to be and am trying to avoid  
rewriting the HttpLimitReqModule to accomplish this. Any ideas?

PS - I would preferably like to do this all in nginx and not involve a  
PF or IPTables.

Thank you for your help!  
Rami

Posted at Nginx Forum:

> **[HttpLimitReqModule logging and not denying](https://forum.nginx.org/read.php?2,203503,203503#msg-203503)**
>
> Hi All, I am trying to restrict frequent requests but not block it completely. I've gotten HttpLimitReqModule to work but this just blocks the requests that exceed the limit. Instead I would like to be able to log it into a table and then forward all...

---

<div class="post-metadata">

**Author:** ![ressaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/53a042/32.png) [@ressaid](https://www.ruby-forum.com/u/ressaid)\
**Post date:** [June 3, 2011, 4:15am UTC](https://www.ruby-forum.com/t/httplimitreqmodule-logging-and-not-denying/207803/2 "2011-06-03T04:15:05Z")

</div>

On 3 June 2011 04:00, ressaid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> PS - I would preferably like to do this all in nginx and not involve a  
> PF or IPTables.

Doing it in the application should be easiest. You’ll need to  
keep/read logs either way.

Thomas
