开发者

Possible to get low level information from referrer in PHP

开发者 https://www.devze.com 2023-03-18 05:17 出处:网络
Is it possible for PHP to determine the follow开发者_开发百科ing 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.

Is it possible for PHP to determine the follow开发者_开发百科ing 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


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.


Mmm Just my 2 cents:

You could post a link with injected javascript in server A, that could make an ajax call to the same server to get HTTP headers like "Server" and "X-Powered-By", then submit them to server A with a cross-domain post. They're only headers, but I hope it helps you at least a little.


Have you thought about using session variables to help you out with this? There is an option in php which allows you to pass the session id as part of the url (instead of a cookie).

Look for "session.use_trans_sid" on this page:

http://php.net/manual/en/function.session-start.php

0

精彩评论

暂无评论...
验证码 换一张
取 消