Welcome! Log In Create A New Profile

Advanced

Global denial for certain IPs or agents?

Alex Hall
May 10, 2016 09:44AM
Hi all,
I've got Nginx on a Debian server, hosting two sites (two subdomains of my
work's website). I want to limit both, and any future subdomains, to only
intranet addresses. I also saw access logs this morning from a Chinese web
spider which I want to block. 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. I tried adding this to
the main conf file, but I'm not sure what to put for the "listen" and other
variables given that this isn't a server, it's a rule I want applied to all
servers. Is this doable? If so, what's the process? Thanks.

--
Alex Hall
Automatic Distributors, IT department
ahall@autodist.com
_______________________________________________
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: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready