You need to know the IP address from which the request came to my server.

  • My ip 212.66.35.189 $ _SERVER ['REMOTE_ADDR'] = server ip with file_get_contents ($ url) Same $ _SERVER ['REMOTE_ADDR'] = 212.66.35.189 when clicking on a link from any site. That's why the question arose. Thanks, got it. - Taypfoon

1 answer 1

$_SERVER['REMOTE_ADDR']