V
V
Viktor Viktorov2018-06-27 17:33:33
Google Chrome
Viktor Viktorov, 2018-06-27 17:33:33

How to determine the real IP if chrome-compression-proxy is installed?

I wrote a script using sypexgeo to determine the geolocation - everything is fine, except that when they enter from a mobile phone, it shows Mountain View, checked it by IP - it's true.
Tried displaying the IP with:

$_SERVER['REMOTE_ADDR']
$_SERVER['HTTP_X_FORWARDED_FOR']
$_SERVER['HTTP_CLIENT_IP']

either not the correct IP or does not display anything. However, on the 2ip.ru service it is determined correctly, mine, Ryazan, and not Mountain View.
I noticed that the problem occurs only in the Google chrome mobile browser with traffic saving enabled, using $ _ SERVER['HTTP_VIA'] I found out that the chrome-compression-proxy technology is used.
How to bypass it and find out the real IP?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2018-06-27
@CoolHeart

X FORWARDED FOR populates correctly with date saver in chrome.
Badly tested.
+ debug stupidly display all headers

P
Puma Thailand, 2018-06-27
@opium

look stupidly at all the headers and you will see where your ip is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question