I have page 'foo', which I have no access to and cannot change the code of, and a page 'bar', a page on my website that I can change the code of.
I don't know what the URL of 'foo' is.
If page 'foo' redirects to another page 'bar', how could I use PHP on 'bar' to find the URL of 'foo'?
I've tried $_SERVER['HTTP_REFERER']
, but this doesn't pick up on page redirects and returns nothing after a page redirect from foo to bar.
It isn't possible for me to put any code on 'foo
'.