Blocking by user agent if ip doesn't match
Igor Sysoev
igor at sysoev.ru
Wed Jun 1 11:25:24 MSD 2011
On Tue, May 31, 2011 at 10:04:11PM +0100, António P. P. Almeida wrote:
> On 31 Mai 2011 20h34 WEST, igor at sysoev.ru wrote:
>
>
> > It works since 0.9.6. I'm going to change case sensitivity like this
> >
> > ~Google # case sensitive
> > ~*google # case insensitive
> >
> > Expression compatible with old and new syntax (for gracefull
> > upgrade):
> >
>
> Question: Is using the map directive more efficient than using a
> "naive" if with access control directives?
Due to "if" block implementation, this may not work in some configurations.
--
Igor Sysoev
More information about the nginx
mailing list