ip2proxy-nginx icon indicating copy to clipboard operation
ip2proxy-nginx copied to clipboard

Source ip from GET parameter

Open Lenon832 opened this issue 3 years ago • 1 comments

it is necessary that the module determines the proxy not from the IP of the real source (remote addr or x-forwarder-for), but from the GET parameter ip (enable to configure in the config)

Lenon832 avatar Aug 31 '22 11:08 Lenon832

And i am using these variables from PX2 database ip2proxy_database /usr/share/PX2-IP-PROXYTYPE-COUNTRY.BIN;

proxy_set_header X-ip2l-country $ip2proxy_country_short; proxy_set_header X-ip2l-is-proxy $ip2proxy_is_proxy; proxy_set_header X-ip2l-proxy-type $ip2proxy_proxy_type;

and on backend i got these

'HTTP_X_IP2L_PROXY_TYPE' => 'FR', 'HTTP_X_IP2L_IS_PROXY' => '1', 'HTTP_X_IP2L_COUNTRY' => 'FR', 'HTTP_X_FORWARDED_FOR' => '92.204.164.167',

HTTP_X_IP2L_PROXY_TYPE wrong value. Got country_short

Lenon832 avatar Aug 31 '22 12:08 Lenon832

Kindly try it again with the latest version.

ip2location avatar Nov 09 '22 09:11 ip2location