Welcome! Log In Create A New Profile

Advanced

Re: Global denial for certain IPs or agents?

Francis Daly
May 10, 2016 04:22PM
On Tue, May 10, 2016 at 09:42:26AM -0400, Alex Hall wrote:

Hi there,

> I know how to do this, but how can I do it
> globally? Currently I have to put the rules in each site's configuration
> file, which is duplicating, which I'd like to avoid.

http://nginx.org/r/allow says "Context: http, server, location, limit_except".

So you can put your allow (and deny) directives at "http" level,
and they will inherit into the appropriate location{} block (unless
overridden elsewhere).


(Or you could block access outside of nginx, by using a firewall or
other network control device.)

f
--
Francis Daly francis@daoine.org

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

Global denial for certain IPs or agents?

Alex Hall May 10, 2016 09:44AM

Re: Global denial for certain IPs or agents?

mex May 10, 2016 09:46AM

Re: Global denial for certain IPs or agents?

Alex Hall May 10, 2016 10:04AM

Re: Global denial for certain IPs or agents?

mex May 10, 2016 10:44AM

Re: Global denial for certain IPs or agents?

Francis Daly May 10, 2016 04:22PM

Re: Global denial for certain IPs or agents?

A. Schulze May 10, 2016 04:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready