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
7
votes
3 answers

Is there a way to know if a page request came from the same application?

In Rails3, is there a way to check if the page I'm rendering now was requested from the same application, without the use of the hardcoded domain name? I currently have: def back_link(car_id = '') # Check if search exists uri_obj =…
Cristian
  • 5,877
  • 6
  • 46
  • 55
7
votes
2 answers

Spoofing HTTP Referrer data using ASP.NET

Answers on here and various other sites are often full of warnings not to trust HTTP Referrer headers because they are 'so easily' spoofed or faked. Before I go any further - no, I'm not up to no good - but I do want to run some referrer-dependant…
Widor
  • 13,003
  • 7
  • 42
  • 64
7
votes
3 answers

How to get ip address, referer, and user agent in ruby?

I want to log user's ip address, referer, and user agent. In PHP, I can get them from the following variables: $_SERVER['REMOTE_ADDR'] $_SERVER['HTTP_REFERER'] $_SERVER['HTTP_USER_AGENT'] How to get them in ruby?
js_
  • 4,671
  • 6
  • 44
  • 61
7
votes
3 answers

Javascript pathname referrer

How can do the same function in javascript that is document.location.pathname - except with the referrer? so something like document.referrer.pathname? Thanks.
Matt
  • 5,005
  • 10
  • 32
  • 39
7
votes
1 answer

HTTP referrer - AWS, Sharepoint and browsers

I have uploaded some files to a S3 bucket. In order to restrict access I have set up a bucket policy with HTTP referrer where redirects from a Sharepoint-site is allowed. I use Sharepoint because of the authorization of users that will access the…
Olav
  • 547
  • 1
  • 5
  • 17
7
votes
4 answers

Problems with document.referrer

I'm having some trouble using document.referrer on some sites, even the reference site using HTTP protocol. In what circumstances document.referrer may be empty (except HTTPS to HTTP)? What is the best way to get the url reference only…
user1706458
  • 83
  • 1
  • 1
  • 7
7
votes
1 answer

Is it possible to get the referrer of an iFrame's parent page with JavaScript in iFrame?

Is it possible to get the referrer of an iFrame's parent page with JavaScript in iFrame? Example: Page A has an iFrame. The iFrames referrer is be page A. But is is possible to get Page A's referrer in the iFrame with JavaScript?
Norbert Tamas
  • 4,464
  • 5
  • 23
  • 28
7
votes
3 answers

How to go back to referer page in CakePHP after login

I have a problem on going back to referer page: first url: http://site.com/venue/apartments/1564/venue-name referer url: null In this page I can edit stuff inside, so I have a login button to go to the login page, after a successful login, I would…
vitto
  • 19,094
  • 31
  • 91
  • 130
6
votes
2 answers

Passing on the HTTP referrer (Site A, B, C - A to C)?

This is a question best illustrated by example: User goes to Site A, and clicks through to Site B. The referring site is now Site A. The same user clicks through to Site C from Site B. The referring site is now Site B. I'm wondering if it's possible…
Avicinnian
  • 1,822
  • 5
  • 37
  • 55
6
votes
2 answers

Fetching the url of previous page in html?

I have an HTML page which contains an href tag. On clicking href link, I get a new page opened. What I want to do is fetch the url of the previous page, on which I had the href link, in my current page. Please help. Thanks,
EMM
  • 1,812
  • 8
  • 36
  • 58
6
votes
2 answers

Don't get Android Market INSTALL_REFERRER on Android 3.x

I implemented a BroadcastReceiver for the Android Market INSTALL_REFERRER Intent as described here: Get referrer after installing app from Android Market It works fine for android devices earlier than 3.0 but it never seems to fire on Honeycomb…
Some Coder
  • 61
  • 2
6
votes
1 answer

Failed to resolve: com.android.installreferrer:installreferrer

Regards to https://android-developers.googleblog.com/2017/11/google-play-referrer-api-track-and.html Play Install Referrer Library 1.0 now available To make it easy to integrate the Install Referrer API, we've released the Install Referrer Library…
Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225
6
votes
5 answers

Remove referer from Javascript redirect

I need to do a Javascript based redirect window.location.href = 'URL'; But I need to remove the referrer from the HTTP headers upon redirection (the target page should see no referrer), how can I do that?
Flavien
  • 7,497
  • 10
  • 45
  • 52
5
votes
4 answers

What are the most common reasons for requests without referrer?

I have a service with a large share of requests with an empty value for HTTP_REFERER. I'd like to interpret this correctly and wonder about the most common reasons for that. I understand that HTTP_REFERER is an optional header field, but most…
the.duckman
  • 6,376
  • 3
  • 23
  • 21
5
votes
2 answers

Is there referrer header while using SSL?

Is there referrer header within domain while using SSL?
ilhan
  • 8,700
  • 35
  • 117
  • 201