Questions tagged [referer]

221 questions
70
votes
2 answers

Origin evil.example in Request Header

I am trying to send form data to a webservice but below "Request Header" in the "Network" of the Chrome DOM I got the origin evil.example and referer "localhost:8080". Accept:application/json, text/plain, */* Accept-Encoding:gzip,…
64
votes
2 answers

Changing the referer URL in python requests

How do I change the referer if I'm using the requests library to make a GET request to a web page. I went through the entire manual but couldn't find it.
Mayank Kumar
  • 1,133
  • 3
  • 13
  • 20
36
votes
2 answers

Get Referer URL in Spring MVC

How can I get the referer URL in Spring MVC Controller?
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
34
votes
1 answer

How to go back to referer after login failure?

For login success there is a parameter use_referer: true. For login failure there is only failure_path, which isn't what I'm looking for. Second thing: How to do that and pass error message? Third thing: How to go back to referrer after logout?
Wojciech Kulik
  • 7,823
  • 6
  • 41
  • 67
22
votes
2 answers

How to allow iframe embedding only for whitelisted websites?

I've a form that I'd like to embed in a website, which is on my whitelist. Other websites, that try to embed it, should get only an error page. I was hoping that I could…
Mr. B.
  • 8,041
  • 14
  • 67
  • 117
14
votes
1 answer

set referer url with ajax request

I want to set the referer page while sending an ajax request. I have done this way but it didn't work. I have included this javascript in a local html file and the main url is cross domain. $.ajax({ url: "{{main url}}", dataType: "json", …
Gagan
  • 4,278
  • 7
  • 46
  • 71
12
votes
7 answers

HTTP Referer not always being passed

I have an application which records users visits. None of these visits are directly accessed, 100% of these visits are referred from another site. I am passing $_SERVER['HTTP_REFERER'] through to the database. Approximately 35% of the logged entrees…
reefine
  • 873
  • 2
  • 13
  • 25
11
votes
1 answer

Check if pop-up blocker is enbled when open new tab

I want to open new window in new process/context in chrome, (Im not sure if it possible with window.open but with the following example its working ) currently if it was regular window you can check with the following example and to see if the…
user6171746
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
9
votes
3 answers

Is the REFERER set if you redirect to a new web page using location.href =?

If you redirect a user to a new web page using the javascript location.href = , what REFERER header does the destination web server see?
dan
  • 43,914
  • 47
  • 153
  • 254
9
votes
2 answers

How to get Google Play referer in an Android application

We are developping an Android application. And we want to track our compaigns. Basically, we want to know from where our users arrives to Google play, by putting a word in the Google Play URL with our parteners and retrieve that word in the…
9
votes
4 answers

disable iframe embedding for other websites

I want to disable iframe embedding pages, from my website to other websites and I make this js: