How to block specific IPs with nginx

Merlin merlin at mahalo.com
Tue Feb 10 22:38:49 MSK 2009


"deny" should work in every context, according to:
http://wiki.codemongers.com/NginxHttpAccessModule#deny

If you have only achieved denying access to specific folders, this is
because you are placing the directives within a location block.  Instead,
move it up to the server block or the http block (to block on all servers).

On Fri, Feb 6, 2009 at 4:23 AM, Andrius Semionovas <admin at agonija.eu> wrote:

> maybe
>
> deny   xxx.xxx.xxx.xxx;
> allow  all;
>
>
>
>
>
> On Fri, 06 Feb 2009 13:37:52 +0200, Asif Ali <azifali at gmail.com> wrote:
>
>  Dear Group,
>>
>> How do I create a block list?. I tried DENY but that does not work well
>> and
>> looks like it is only for blocking access to specific folders.
>>
>> Please advise
>>
>> regards
>>
>> Asif Ali
>>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090210/d884e9d5/attachment.html>


More information about the nginx mailing list