# HttpLimitZoneModule and HttpLimitReqModule possible to list IPs banned?

**URL:** <https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375>\
**Category:** NGINX\
**Created:** [March 29, 2012, 8:02pm UTC](https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375 "2012-03-29T20:02:35Z")\
**Posts on this page:** 3\
**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:** [March 29, 2012, 8:02pm UTC](https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375/1 "2012-03-29T20:02:35Z")

</div>

Hello All,

I have this inside my httpd {}… Is there anyway to list the IPs that  
have been banned? If not what is the closest way to do this?

limit\_req\_zone $limit zone=notabot:5m rate=200r/s;  
limit\_req zone=notabot burst=200 nodelay;

```
geo $notabot {
    default 1;
    #google
    64.233.160.0/19 0;
    65.52.0.0/14 0;
    66.102.0.0/20 0;
    66.249.64.0/19 0;
    72.14.192.0/18 0;
    74.125.0.0/16 0;
    209.85.128.0/17 0;
    216.239.32.0/19 0;
    #My IPs
    127.0.0.1/32 0;
    200.122.149.9 0;
}
map $notabot $limit {
    1 $binary_remote_addr;
    0 "";
}

```

Thanks  
–Mike

---

<div class="post-metadata">

**Author:** ![Micheal\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@Micheal\_W](https://www.ruby-forum.com/u/Micheal_W)\
**Post date:** [March 30, 2012, 5:50am UTC](https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375/2 "2012-03-30T05:50:09Z")

</div>

Hello!

On Thu, Mar 29, 2012 at 06:01:50PM +0000, Micheal W. wrote:

> I have this inside my httpd {}.. Is there anyway to list the IPs  
> that have been banned? If not what is the closest way to do  
> this?
> 
> limit\_req\_zone $limit zone=notabot:5m rate=200r/s;  
> limit\_req zone=notabot burst=200 nodelay;

Right now the only way is to check error logs, nginx will log “…  
limiting requests … by zone …” for each request rejected by  
limit\_req (at level set by limit\_req\_log\_level, “error” by  
default). The same applies to limit\_conn as well.

Maxim D.

---

<div class="post-metadata">

**Author:** ![Micheal\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@Micheal\_W](https://www.ruby-forum.com/u/Micheal_W)\
**Post date:** [March 30, 2012, 5:53am UTC](https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375/3 "2012-03-30T05:53:15Z")

</div>

You can have a look at my limit\_access module:

> **[GitHub - yaoweibin/nginx\_limit\_access\_module: support to deny specific...](https://github.com/yaoweibin/nginx_limit_access_module)**
>
> support to deny specific variable with HTTP POST interface - GitHub - yaoweibin/nginx\_limit\_access\_module: support to deny specific variable with HTTP POST interface

It can add/delete/display the banned IP. But it only can add single  
IP, not a range of IP.

2012/3/30 Micheal W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
