Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mvnobrega's avatar

Is it possible to get the Referer URL path? [ SOLVED ]

Why does the referer in the header never show the complete url from where the access to a link started? It only shows the domain and I need to get the full url.

For example, if you go to inspect in the browser and open this site: https://audiobookscloud.com/B002XWUPVC

It redirects to Amazon, but the Referer only shows referer: https://audiobookscloud.com/ and not the full url, which would be: https://audiobookscloud.com/B002XWUPVC

Why does this happen and how could I see the complete URL from which the access to a link came?

0 likes
3 replies
mvnobrega's avatar

@martinbean

thanks. But how does Amazon identify where the link came from? Because I found out that I can't use my own redirection on amazon affiliates and I was curious how they discovered this, because some days using this type of redirection they block my account and show where the accesses came from (the complete url). How do they know this since the header does not have this information?

martinbean's avatar
Level 80

@mvnobrega It’s all down to the referrer policy. If a website restricts sending referrer information then there’s nothing you can do to read it—the information isn’t there.

1 like

Please or to participate in this conversation.