Welcome! Log In Create A New Profile

Advanced

modify $proxy_add_x_forwarded_for

Posted by FlyingPenguin 
modify $proxy_add_x_forwarded_for
November 22, 2011 05:58AM
I'm using nginx as SSL proxy and adding the X-Forwarded-For Header. The variable $proxy_add_x_forwarded_for is always the full IP. Does someone know a way to replace the last octet of the IP with 0? I need something like this for data privacy.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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