<div dir="ltr">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?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 9:46 AM, mex <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex<br>
<br>
this might be an inspiration for your task:<br>
<a href="https://www.howtoforge.com/nginx-how-to-block-visitors-by-country-with-the-geoip-module-debian-ubuntu" rel="noreferrer" target="_blank">https://www.howtoforge.com/nginx-how-to-block-visitors-by-country-with-the-geoip-module-debian-ubuntu</a><br>
<br>
<br>
<br>
cheers,<br>
<br>
<br>
mex<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,266738,266739#msg-266739" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,266738,266739#msg-266739</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>