Combine if clauses for denial

Falko Timme ft at falkotimme.com
Thu Apr 5 15:11:41 UTC 2012


This should give you the idea:

http://rosslawley.co.uk/2010/01/nginx-how-to-multiple-if-statements.html

----- Original Message ----- 
From: "Peter Hinse" <loco at d0pefish.de>
To: <nginx at nginx.org>
Sent: Thursday, April 05, 2012 4:30 PM
Subject: Combine if clauses for denial


> Hi all,
> 
> I know how to block requests with an empty user-agent or with an empty 
> referrer - is it possible to combine these two criteria and deny access 
> when a request has no referrer AND no user-agent?
> 
> Regards,
> 
> Peter
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list