Welcome! Log In Create A New Profile

Advanced

Re: Global denial for certain IPs or agents?

Alex Hall
May 10, 2016 10:04AM
Thanks. That page says that, to do the actual returning of the 4xx error,
you must go go your site's configuration, not the global conf file. Am I
reading that right? Is the easiest way to set my own variable in the main
conf file, based on IP, then just do a check for that variable in each
site's file? Or is there another way?

On Tue, May 10, 2016 at 9:46 AM, mex <nginx-forum@forum.nginx.org> wrote:

> Hi Alex
>
> this might be an inspiration for your task:
>
> https://www.howtoforge.com/nginx-how-to-block-visitors-by-country-with-the-geoip-module-debian-ubuntu
>
>
>
> cheers,
>
>
> mex
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,266738,266739#msg-266739
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
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: 109
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