Francis Daly
April 26, 2019 11:28AM
On Fri, Apr 19, 2019 at 05:24:14AM -0400, allenhe wrote:

Hi there,

> I found this is valid, and want to know what scenario it's used for.
>
> deny 0.0.0.1;

http://nginx.org/r/deny

Are you asking what the directive is for; or are you asking why an
argument is accepted; or are you asking why this particular argument
is accepted?

I suspect that the answer to the last is "it looks like an IP address;
and if the administrator wants to configure that, why should nginx try
to stop them?".

I also suspect that hoping that nginx will interpret that address in
accordance with an interpretation of RFC 6890 (or RFC 1122) is ambitious,
unless you can see that in the code.

There are a bunch of "reserved" IP addresses. nginx probably doesn't care
about them. You can set your network up any way you want, and nginx will
(in general) believe what you put in your config.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

what does "deny 0.0.0.1;" do

allenhe April 19, 2019 05:24AM

Re: what does "deny 0.0.0.1;" do

Francis Daly April 26, 2019 11:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready