The referrer, or HTTP referrer — also known by the common misspelling referer that occurs as an HTTP header field — identifies, from the point of view of an Internet webpage or resource, the address of the webpage of the resource which links to it. By checking the referrer, the new webpage can see where the request originated.
Questions tagged [http-referer]
564 questions
12
votes
3 answers
Url fragment and Referer header
Imagine you are on a page whose URL has a fragment (the part after the #), and click a link to go to another page. Most browsers will send the URL of the original page to the server in the Referer header. What I want to know is whether or not the…

levik
- 114,835
- 27
- 73
- 90
12
votes
2 answers
Nginx: allow access only to referrer that match location name
Is there a way, in nginx, to allow access to a "location" only to clients with a referrer that matches the current location name?
This is the scenario:
http://foooooo.com/bar.org/
http://foooooo.com/zeta.net/
etc etc
I want the contents of the…

Vincenzo Petrucci
- 843
- 1
- 8
- 15
11
votes
4 answers
Get referrer string for Universal Link?
I implemented Universal Links in our iOS 9 app and they work by calling a method in AppDelegate.swift, in which I get an NSUserActvity with an URL attached to it.
Is there a way to get the (HTTP-) referer? I need to know on which website the user…

scrrr
- 5,135
- 7
- 42
- 52
11
votes
7 answers
Get referrer URL - visitors coming from Paypal (HTTPS)
Hi I'm trying to get the referrer url but it doesn't work when the visitor comes to the site from Paypal
$ref = $_SERVER['HTTP_REFERER'];
echo $ref;
Is there a simple way to get the paypal url if the visitor land on the site coming from Paypal…

user983248
- 2,588
- 7
- 24
- 44
10
votes
3 answers
PHP - Referer redirect script
Often, when searching for answers, I have found that certain websites will allow you to read the information they offer if the referer is, for example, google.com. Yet, if you link directly to the information, it will be unavailable.
What I am…
user5880
10
votes
4 answers
In what cases HTTP referer will be truncated
I'm trying to understand the behavior of HTTP referer header. I noticed that sometimes the referer is full (full URL, including path and query string) but mostly it includes the domain only.
For example 'https://www.google.com/' instead of…

danieln
- 4,795
- 10
- 42
- 64
10
votes
4 answers
Setting referer in Selenium
Im working with the selenium remote driver to automate actions on a site, i can open the page i need directly by engineering the url as the sites url schema is very constant. This speeds up the script as it dose not have to work through several…

sam
- 9,486
- 36
- 109
- 160
9
votes
3 answers
Safari mobile and desktop are hiding full referrer URL: why?
I have a website, www.a.com
In that website, I serve a page at https://www.a.com/mypage that contains this:
If I visit from every browser, b.com will receive this as http…

Saturnix
- 10,130
- 17
- 64
- 120
9
votes
1 answer
How to get referrer source of iframe parent page?
We are taking our iframe entry form code and placing it on a website page. We want to be able to see where someone came from if they land on the page and entered their information into the form.
For example: our iframe is embedded on a page. The URL…

Giancarlo Massaro
- 325
- 1
- 3
- 10
9
votes
2 answers
Changing the value of referrer
Possible Duplicate:
How to manually set REFERER header in Javascript?
How to change the value of document.referrer?
I tried this
self