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
103
votes
8 answers

How to test android referral tracking?

I'm implementing some code to do my own referral tracking on downloads from the Android market. See Android referral tracking does not work for an idea of what my app is doing. How can I test if this code is working before deploying to the public?
emmby
  • 99,783
  • 65
  • 191
  • 249
96
votes
5 answers

Will a 302 redirect maintain the referer string?

I need to redirect the user from one page to another, but I need to maintain the original referer string. So, for example, if they start out on http://www.othersite.com/pageA.jsp, click a link that takes them to http://www.example.com/pageB.jsp,…
sangfroid
  • 3,733
  • 11
  • 38
  • 42
92
votes
4 answers

How do I get the referrer URL in an ASP.NET MVC action?

How do I get the referrer URL in an ASP.NET MVC action? I am trying to redirect back to the page before you called an action.
Ryall
  • 12,010
  • 11
  • 53
  • 77
78
votes
7 answers

Stop link from sending referrer to destination

I have a page where I don't want the outbound links to send a referrer so the destination site doesn't know where they came from. I'm guessing this isn't possible but I just want to make sure there weren't any hidden javascript magic that could do…
nolanpro
  • 2,257
  • 3
  • 23
  • 23
73
votes
10 answers

Get referrer after installing app from Android Market

I am trying to register a Broadcast Receiver that catches "com.android.vending.INSTALL_REFERRER" intents launched by Android after an app is installed from the Market. I am following the details here:…
Jake
  • 781
  • 1
  • 6
  • 5
71
votes
6 answers

How to get the previous url using PHP

Suppose my site's url is given as hyperlink on some page on the internet; that page could be anything on internet - blog, orkut, yahoo, even stackoverflow etc, and someone clicks on it,and visited my site. So can we know, using php, the previous url…
Nawaz
  • 353,942
  • 115
  • 666
  • 851
54
votes
3 answers

Can I get the referrer?

I have a website on which I dynamically create Javascript code using ASP.NET handler in which I should add the referrer to a database. I want to get referrer of referrer like so: website1 website2 (where I create pixel to another site) website3…
eugeneK
  • 10,750
  • 19
  • 66
  • 101
44
votes
10 answers

What is the most reliable way to hide / spoof the referrer in JavaScript?

Normally, the referrer is traceable through: JavaScript's document.referrer The request headers, e.g. PHP's $_SERVER['HTTP_REFERER'] I have set up a Codepad demo which shows these properties, for testing purposes. #Requirements: The original…
Rob W
  • 341,306
  • 83
  • 791
  • 678
44
votes
6 answers

Getting the IP address of server in ASP.NET?

How do I get the IP address of the server that calls my ASP.NET page? I have seen stuff about a Response object, but am very new at c#. Thanks a ton.
Jamison Dance
  • 19,896
  • 25
  • 97
  • 99
42
votes
5 answers

jQuery check if Cookie exists, if not create it

I cannot get this code to work I must be missing something pretty simple. I am trying to check to see if a Cookie exists, if it does {do nothing} if it doesn't {create it}. I am testing the cookie by including an alert on a page. Basically I do…
ToddN
  • 2,901
  • 14
  • 56
  • 96
40
votes
9 answers

How to implement a "back" link on Django Templates?

I'm tooling around with Django and I'm wondering if there is a simple way to create a "back" link to the previous page using the template system. I figure that in the worst case I can get this information from the request object in the view…
TM.
  • 108,298
  • 33
  • 122
  • 127
36
votes
2 answers

How do you get the Url Referer via a javascript include?

If I search for something on google and click on a result (mytestsite.com), the referer to that site will be URL of the google search. Now on that site, there is a JS file include that is used for tracking purposes..however the referrer to that JS…
puffpio
  • 3,402
  • 6
  • 36
  • 41
35
votes
5 answers

JavaScript window.location does not set referer in the request header

I understand relying on Referer in the request header is not right. But my question is, why IE does not set Referer to the Request Header if I use window.location? Any thoughts or fixes? This does not set Referer in the Request header: function…
Sha Le
  • 1,261
  • 2
  • 11
  • 10
35
votes
6 answers

Checking the referrer

I'm using this to check if someone came from Reddit, however it doesn't work. var ref = document.referrer; if(ref.match("/http://(www.)?reddit.com(/)?(.*)?/gi"){ alert('You came from Reddit'); } else { alert('No you didn\'t'); } Suggestions…
Ben Shelock
  • 20,154
  • 26
  • 92
  • 125
26
votes
2 answers

How can I track Android install referrers with Amazon Appstore?

I am currently tracking referrers with Android Market and Google Analytics as described here: http://code.google.com/mobile/analytics/docs/android/#android-market-tracking Is there a similar solution that can be used for Amazon Appstore?
Jonas
  • 2,096
  • 20
  • 17
1
2 3
41 42