Blocking by user agent if ip doesn't match

Hari Hendaryanto hari.h at csmcom.com
Wed Jun 1 12:42:12 MSD 2011


On 6/1/2011 2:34 AM, Igor Sysoev wrote:
> As to configuraiton it's better to use this logic:
> geo $not_google {
>      default     1;
>      66.0.0.0/8  0;
> }
>

Does geo directive will also work for ipv6 ?

ie:

geo $not_google {
     default     1;
     66.0.0.0/8  0;
     2404:6800::/32    0;
}

I hardly find wiki explained about ipv6 ( 
http://wiki.nginx.org/HttpGeoModule )

thanks

Powered By http://www.3g-net.net




More information about the nginx mailing list