Welcome! Log In Create A New Profile

Advanced

Re: Allow and Deny IP's

Francis Daly
February 07, 2018 11:38AM
On Wed, Feb 07, 2018 at 09:57:04PM +0530, Kaushal Shriyan wrote:
> On Wed, Feb 7, 2018 at 5:32 AM, Francis Daly <francis@daoine.org> wrote:
> > On Mon, Feb 05, 2018 at 11:56:04PM +0530, Kaushal Shriyan wrote:

Hi there,

> In the curl request I am adding http header -H 'x-forwarded-for:
> 12.12.12.13.11'
>
> curl -X GET http://13.127.165.226/ -H 'cache-control: no-cache' -H
> > 'postman-token: 2494a4a7-6791-2426-cedf-d0bcaa1cd90a' -H
> > 'x-forwarded-for: 12.12.12.13.11'
>
>
> IP :- 12.12.12.13.11 should be denied with 403
>
> Please let me know if i am missing anything.

No part of your config that I can see says to use the contents of the
x-forwarded-for header to determine whether the request should be allowed
or denied.

Is that in a part of the configuration that you did not show?

(Also: 12.12.12.13.11 is not an IP address.)

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

Allow and Deny IP's

Kaushal Shriyan February 05, 2018 01:28PM

Re: Allow and Deny IP's

ph.gras February 05, 2018 07:04PM

Re: Allow and Deny IP's

Kaushal Shriyan February 06, 2018 09:58AM

Re: Allow and Deny IP's

Francis Daly February 06, 2018 06:58PM

Re: Allow and Deny IP's

ph.gras February 07, 2018 01:30PM

Re: Allow and Deny IP's

Francis Daly February 08, 2018 03:26AM

Re: Allow and Deny IP's

Francis Daly February 06, 2018 07:04PM

Re: Allow and Deny IP's

Kaushal Shriyan February 07, 2018 11:28AM

Re: Allow and Deny IP's

Francis Daly February 07, 2018 11:38AM

Re: Allow and Deny IP's

jasonw February 07, 2018 03:14PM

Re: Allow and Deny IP's

ph.gras February 07, 2018 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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