Questions tagged [referrer]

is a HTTP header field that identifies the address of the webpage (i.e. the URI or IRI) that linked to the resource being requested.

621 questions
5
votes
0 answers

How to set the Referrer-Policy HTTP header with the Angular HTTP Client?

How can we set the Referrer-Policy HTTP header when using Angular's HTTP Client? I've tried setting it below but it does not work: let headers = new HttpHeaders(); headers = headers.set('Referrer-Policy', 'no-referrer'); this.httpClient.get(url, {…
5
votes
2 answers

How to get original referrer url when invoking javascript??

Let us take i am in site named domain1.com and navigating to another site domain2.com, where i invoke a external js call. The problem is the referrer of the js call is domain2.com and but i need the original referrer i.e. domain1.com. I see that the…
Balaji
  • 859
  • 1
  • 16
  • 27
5
votes
3 answers

Guaranteeing request came from local server

I've got a classic ASP page making an XMLHTTP request to my ASP.net (c#) page, "doSomething.ashx". They are both hosted on the same server. How can I guarantee that the request came from the local server, to stop malicious users visiting the…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
5
votes
4 answers

Why is my browser not sending any referrer?

I have an html page with the following code.
My browser does not include the referrer header field in the http request when a user submits…
AdrienM
  • 174
  • 2
  • 3
  • 10
5
votes
2 answers

How do I identify the referrer page in ASP.NET?

In VS2003, I am trying to find out the particular page where the request is coming from. I want to identify the exact aspx page name. Is there a way to only get the page name or some how strip the page name? Currently I am using the following…
dotnet-practitioner
  • 13,968
  • 36
  • 127
  • 200
5
votes
1 answer

Referral links on App Store / Google Play

I have created a game and published it on App Store and Google Play, now I want to advertise it on a couple of websites. But how can I track where people came from? In the past, when we sold things on our own websites, we could use…
shal
  • 2,854
  • 4
  • 20
  • 31
5
votes
2 answers

Getting the referrer URL in php ( including parameters )

Are there any HTTP Headers I could use to grab the entire referrer URL using a webserver/server-side scripting? Including query string, et cetera?
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
4
votes
2 answers

Rails 3 gem for capturing referrer info?

Is there a single (or multiple) Rails gem that will help to easily capture the following on a when registering a new model instance (i.e.: new user)? referrer URL traffic source (google, bing, etc.) traffic medium (organic, cpc) search terms (if…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
4
votes
1 answer

history.back only if referrer same website

I'd like to display a back button with the help of history.back, but it should only be displayed if the history page is within the same website / domain. So it should not be displayed if referrer is e.g. google.com. Couldn't find a working solution…
m4mpfi
  • 41
  • 1
4
votes
1 answer

Kohana 3.2 - Get referrer URI

I'm attempting to get the referrer URI in Kohana 3.2 using the following code: $referrer = $this->request->referrer(); var_dump($referrer); However the function returns NULL, I'm expecting it to return the page I left to get to this one. Is that…
diggersworld
  • 12,770
  • 24
  • 84
  • 119
4
votes
5 answers

Is it possible to remove the referrer in PHP before redirected?

But since the browser is the only thing that manages the referrer, however I was thinking about a script that removes the referrer before they are redirected to the link they want to go to. For example,…
MacMac
  • 34,294
  • 55
  • 151
  • 222
4
votes
1 answer

How to get complete url from document.referrer when there are some special characters in it?

How can I get the complete url like "http://twitter.com/#!/larrickchen" using something like document.refrerrer if it did come from "http://twitter.com/#!/larrickchen" ?? document.referrer only return "http://twitter.com/" instead of full path. I…
larrick
  • 43
  • 1
  • 4
4
votes
1 answer

How can I set google analytics referrer manually with gtag script?

https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#referrer I can set google analytics referrer manually with ga script. but I want to use gtag script for GA implementation. So How can I set the Referer manually…
Daniel Li
  • 170
  • 1
  • 12
4
votes
2 answers

Javascript `document.referrer` vanishes when using a HTTP->HTTPS Apache redirection

I redirect all my websites from HTTP to HTTPS with: ServerName example.com RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} ServerName…
Basj
  • 41,386
  • 99
  • 383
  • 673
4
votes
1 answer

Android Market Referrer Data Not Being Populated

I've implemented a BroadcastReceiver to receive and parse Android Market referrer data. I followed the steps here: http://code.google.com/mobile/analytics/docs/android/#android-market-tracking and this all works fine and dandy when I navigate to the…
Matt K
  • 6,620
  • 3
  • 38
  • 60