Blocking by user agent if ip doesn't match

Igor Sysoev igor at sysoev.ru
Wed Jun 1 12:48:10 MSD 2011


On Wed, Jun 01, 2011 at 03:42:12PM +0700, Hari Hendaryanto wrote:
> 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 )

No, currently geo does not support ipv6.


-- 
Igor Sysoev



More information about the nginx mailing list