Global denial for certain IPs or agents?

Alex Hall ahall at autodist.com
Tue May 10 14:03:06 UTC 2016


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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Alex Hall
Automatic Distributors, IT department
ahall at autodist.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160510/f5af6a60/attachment.html>


More information about the nginx mailing list