HttpLimitZoneModule and HttpLimitReqModule possible to list IPs banned?

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

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.

You can have a look at my limit_access module:
https://github.com/yaoweibin/nginx_limit_access_module

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. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs