The only way to do this is to use PROXY
, IP is the only thing that identifies the access location.
CURL has support for PROXY in several ways, you can use for example:
curl_setopt($ch, CURLOPT_PROXY, $proxy);
The $proxy
must have the value of type:
[user:password@]ip[:port]
For example:
$proxy = 'usuario:[email protected]:8888'
Proxies can be purchased, their cost is extremely variable depending on the location, the quality of the connection and also the limit of use. You can get the server itself and use it as a proxy, using for example Squid Proxy
, which is software designed for proxy creation. As another option is to use TOR
, it can be used as a proxy and it is free, in this case the IP would be 127.0.0.1:9050
, if it is running on the local machine, and you should set exit node
to destination you want in the settings.
This will do exactly:
Seu servidor (Nova Iorque) -> Seu proxy (São Paulo) -> Facebook
This way Facebook will recognize that the connection occurred in São Paulo, if São Paulo is near (or exactly) where you connect normally there will be no blocking. : D