Welcome! Log In Create A New Profile

Advanced

nginx http_x_forwarded_for blocking ip

September 26, 2019 06:06AM
всем привет

подкажите плиз
нужно блокировать 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;
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: 88
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