Welcome! Log In Create A New Profile

Advanced

Re: nginx http_x_forwarded_for blocking ip

Slawa Olhovchenkov
September 26, 2019 08:00AM
On Thu, Sep 26, 2019 at 01:58:19PM +0300, Evgeniy Berdnikov wrote:

> On Thu, Sep 26, 2019 at 06:06:54AM -0400, classic85 wrote:
> > всем привет
> >
> > подкажите плиз
> > нужно блокировать ip по заголовку:
> > http_x_forward_for":«10.13.2.14, 10.99.111.25:13555
> > нужно блокировать только если эти два ip вместе приходят
> > пробовал разные способы. все равно проходит
> >
> > пример
> >
> > if ($http_x_forward_for ~ " ?10\.13\.2\.14*") {
> > return 403;
>
> А такой заголовок вообще есть? Бывает X-Forwarded-For.

заголовок может быть какой угодно, если он удоволтворяет грамматике.
придумывай свои, сколько хочешь.
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx http_x_forwarded_for blocking ip

classic85 September 26, 2019 06:06AM

Re: nginx http_x_forwarded_for blocking ip

Илья Шипицин September 26, 2019 06:32AM

Re: nginx http_x_forwarded_for blocking ip

classic85 September 26, 2019 06:49AM

Re: nginx http_x_forwarded_for blocking ip

Илья Шипицин September 27, 2019 07:32AM

Re: nginx http_x_forwarded_for blocking ip

Evgeniy Berdnikov September 26, 2019 07:00AM

Re: nginx http_x_forwarded_for blocking ip

classic85 September 26, 2019 07:01AM

Re: nginx http_x_forwarded_for blocking ip

Slawa Olhovchenkov September 26, 2019 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
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