2011年2月16日星期三

I want to use limit_req_zone and limit_zone to limit all ip but not include 67.67.67.67!How to?

I want to use limit_req_zone and limit_zone to limit all ip but not include 67.67.67.67!

How to?

….

…..

…..

limit_zone  crawler  $binary_remote_addr  10m;

limit_req_zone  $binary_remote_addr zone=all:10m   rate=60r/m;

server

  {…

…..

….

allow  67.67.67.67;

limit_conn crawler 10;

limit_req   zone=all  burst=99;

..

..

}

Now is limit include 67.67.67.67,How to limit all but not include 67.67.67.67?

没有评论:

发表评论