Allow and Deny IP's
francis at daoine.org
Wed Feb 7 16:37:24 UTC 2018
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 at daoine.org> wrote:
> > On Mon, Feb 05, 2018 at 11:56:04PM +0530, Kaushal Shriyan wrote:
> In the curl request I am adding http header -H 'x-forwarded-for:
> curl -X GET http://126.96.36.199/ -H 'cache-control: no-cache' -H
> > 'postman-token: 2494a4a7-6791-2426-cedf-d0bcaa1cd90a' -H
> > 'x-forwarded-for: 188.8.131.52.11'
> IP :- 184.108.40.206.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
Is that in a part of the configuration that you did not show?
(Also: 220.127.116.11.11 is not an IP address.)
Francis Daly francis at daoine.org
More information about the nginx