Blocking by user agent if ip doesn't match
Alexandr Gomoliako
zzz at zzz.org.ua
Wed Jun 1 01:28:21 MSD 2011
On 6/1/11, António P. P. Almeida <appa at perusio.net> wrote:
> Question: Is using the map directive more efficient than using a
> "naive" if with access control directives?
I think it's just considered to be a bad practice to use anything
rather than return or rewrite in ifs.
In terms of efficiency: geo uses rbtrees and access module uses
arrays. But I don't think it's about that. It's more of an example to
illustrate how to use multiple conditions and new features in nginx.
More information about the nginx
mailing list