Welcome! Log In Create A New Profile

Advanced

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

July 31, 2014 10:13PM
Hi,

some time ago I had a similar issue and I grab some parts of nginx internals modules and did one specific to me.
My issue was to use the first XForwardedFor IP, but only when the client address was the Google Chrome Proxy.
I don't know if this is the best approach,
but I check the client ip using the reverse dns and, if the ip came from Google,
I change it for the first ip on XFowardedFor header.
Doing that, the GeoIP module can be executed with the "real ip" instead of the Google.

If you want to look how I did, the code is here https://github.com/wandenberg/nginx-trusted-proxy-resolver-module.
(The idea is to expand this module to support other mobiles proxies like Windows Phone and Mini Opera.)

Regards,
Wandenberg
Subject Author Posted

GeoIP FirstNonPrivateXForwardedForIP

Keyur June 12, 2014 12:36PM

RE: GeoIP FirstNonPrivateXForwardedForIP

Lukas Tribus June 12, 2014 01:12PM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

Keyur June 16, 2014 01:17AM

RE: GeoIP FirstNonPrivateXForwardedForIP

Lukas Tribus June 16, 2014 03:14AM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

Keyur June 16, 2014 03:19AM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

Keyur June 23, 2014 02:57AM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

Jonathan Matthews June 23, 2014 06:32AM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

Keyur June 23, 2014 07:05AM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

Steve Wilson June 23, 2014 07:18AM

RE: GeoIP FirstNonPrivateXForwardedForIP

Lukas Tribus June 23, 2014 08:32AM

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

wandenberg July 31, 2014 10:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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