Blocking blank useragent requests

Cliff Wells cliff at
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.

Also, as that URL indicates, "if" is part of the rewrite module, so that
must be compiled in.


More information about the nginx mailing list