Blocking blank useragent requests
Cliff Wells
cliff at develix.com
Tue Jan 26 01:58:08 MSK 2010
On Tue, 2010-01-26 at 00:54 +0200, Marcus Clyne wrote:
> Hi,
>
> Bob wrote:
> > Thanks for the response, greatly appreciated :) However I'm getting Unknown directive 'if' when trying to add this into my nginx config - any ideas?
> >
> Is your 'if' statement under a server or location block? If not, it
> won't work.
>
> http://wiki.nginx.org/NginxHttpRewriteModule#if
Also, as that URL indicates, "if" is part of the rewrite module, so that
must be compiled in.
Cliff
More information about the nginx
mailing list