Falko Timme
April 05, 2012 11:12AM
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@d0pefish.de>
To: <nginx@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Combine if clauses for denial

Peter Hinse April 05, 2012 10:32AM

Re: Combine if clauses for denial

Falko Timme April 05, 2012 11:12AM

Re: Combine if clauses for denial

Peter Hinse April 05, 2012 11:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready