Search code examples
phpapachecurlreverse-proxyreferer

Possible to get low level information from referrer in PHP


Is it possible for PHP to determine the following scenario:

Server "A" : I do not own or have control over the server. I am able to post web links on this server to my server.

Server "B" : My own server running PHP and Apache.

: I want to post a link on server "A" and when I click the link and hit server "B", I want to retrieve all the information about the originating link as possible. Including Ajax calls made to get to my server. HTTP_REFERER is not giving me the info I need.

When I run Charles or Fiddler in the app UI, I see the GET requests I need. But I'm not sure PHP is able to "reverse engineer" this request automatically in the scenario I outlined.

some things that come to mind (which could be off base)

CURL referrer Reverse proxy Charles/Fiddler2


Solution

  • Clicking a link on external site A to your site B results in a single HTTP request to your server, with site A's URL as the referrer header. There is no other information.