Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

The idea is explained here

In simple words, Nginx Proxy plays the role of load balance and transmits the HTTP/HTTPS requests to servers.

If the number of request times within a certain period from an individual IP exceeds a threshold, it will trigger a captcha for the upcoming requests.

And the end-user must input the correct captcha code before he can continue to access the site.

Do you know any open source / free NGINX module for this usage? I searched on the Internet and here is one of them: https://github.com/snbuback/nginx seems it needs modification.

Any suggestion / experience is welcome, thank you

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I think, captcha will only annoy your real users. For this problem I'd rather use the testcookie-nginx-module.

share|improve this answer
Thanks, I don't quite understand how it works from its sequence charts. Will it prevent Search Engine Crawler to parse my site? –  user325320 Jul 5 '12 at 5:11
Well, it depends on your imagination mostly :) I guess that correct robots.txt file would be a better option to filter out search bots. In addition to this, you can use nginx rules - like this way. –  hangover Jul 6 '12 at 4:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.