I
I
Ivan Polikarpov2015-04-21 13:13:16
linux
Ivan Polikarpov, 2015-04-21 13:13:16

How is the server's IP address determined when making requests to another server?

The second day I fight :)
There is a server in DO, located in the Netherlands, its IP address is determined by all IP location services as Amsterdam.
There is a php parser that parses lostfilm.tv.
Part of the lostfilm pages is closed to users from the Russian Federation, the location is determined, judging from the stub, by IP.
Despite the fact that my server is located in the Netherlands, the script still does not receive the content of pages closed to the Russian Federation when crawling. Here is the output:

<p style="width:100%;text-align:center;font-size:18px"><b>ВНИМАНИЕ!</b></p>
  <p align="left">Контент недоступен на территории Российской Федерации*. Приносим извинения за неудобства.</p><br /><br /><br />
  <p align="left" style="font-size:11px;">* Определение местоположения пользователя осуществляется по IP-адресу компьютера.</p>

The content requested both cURL and file_get_contents, I tried to forcibly insert IP servers into $context - it does not work. It works through a proxy, but it doesn't.

At the same time, any anonymizer when located in the Netherlands shows the full content of the page.
Where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
PO6OT, 2015-04-21
@taboo1387

Probably, in the databases of the geotargeting service that uses lostfilm.tv, your IP is recorded as Russian (perhaps because you registered on a hosting from Russia and he somehow informed the service that uses lostfilm.tv, which is very unlikely), or your server IP is not listed in the database of the geotargeting service and, just in case, lostfilm.tv considers it Russian.
There is only one solution - find a service that uses lostfilm.tv and write to their support service so that your IP is registered as Dutch

I
Ivan Polikarpov, 2015-04-21
@taboo1387

In general, the matter is unambiguous in the location determiner by IP address, which is installed on lostfilm.tv
A minute ago, I created a new server, only in the USA.
issued the full content of the page without a stub for the Russian Federation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question