referrer

PHP HTTP Referrer

二次信任 提交于 2019-11-30 04:21:06
问题 I have a page which accepts POSTs from a remote site. I would like to detect the domain that these POSTs are coming from. I realize that it can be spoofed but it is better than nothing. I have tried accessing the HTTP_REFERER variable but it just returns null. The page accepts POSTs from sources like PayPal (instant payment notifications) and other payment gateways. How can I get the referring call? 回答1: You spelled Referer correctly. It should be: $_SERVER['HTTP_REFERER'] 回答2: $_SERVER['HTTP

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

杀马特。学长 韩版系。学妹 提交于 2019-11-30 02:49:36
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 file request is mytestsite.com...is there no way for the server handling the JS request to know that it originated from a google search? A script tag will always refer to the document that is sourcing it. If you're doing something special on the server you might want to consider using a session or cookies. I'm a little unclear on what you are trying

Symfony2: Backward Uri (Referrer) during switching locale

六眼飞鱼酱① 提交于 2019-11-29 15:48:25
问题 I'd like to implement locale switcher, but it seems with no luck... The code below doesn't work because the (Referrer) contains the old value of locale... How can I redirect to the old Referrer URI with a new value of locale? -- routing.yml hello: pattern: /{_locale}/hello/{name} defaults: { _controller: JetInformBundle:Default:index, name: 'alexander' } requirements: _locale: ^en|de|ru|uk$ about: pattern: /{_locale}/about defaults: { _controller: JetInformBundle:Default:about } requirements:

Send a location hash through a referrer

余生长醉 提交于 2019-11-29 10:07:07
I have a page where in Javascript I add to the location hash something like: location.hash = "initial_source=previous_referrer". Afterwards a window.location is done in order to redirect. However the receiver gets the referrer in his request without the hash (#) part. Is it possible to somehow modify the URL in the initial page, without a redirect, so the final referrer is what is desired? Thank you. First, the hash portion of a URL is used on the client side only. It will never appear in server logs, requests, or as part of a REFERRER string. Second, the only part of the url that can be

ASP.NET - Response.Redirect Not Populating Url Referrer

大城市里の小女人 提交于 2019-11-29 03:49:57
I feel like i've done this a ton of times, but i can't for the life of me figure out what is going wrong. Default.aspx: protected void Page_Load(object sender, EventArgs e) { var r1 = Request.UrlReferrer; // null var r2 = Request.ServerVariables["HTTP_REFERRER"]; // null } SingleSignOn.aspx: protected void Page_Load(object sender, EventArgs e) { Response.Redirect("/"); } If i type "/SingleSignOn.aspx" in the URL, it redirects to Default.aspx, but the referrer is null. What am i missing here? What im trying to do (this is a simplified example), is on any page, i will have some JavaScript to do

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

僤鯓⒐⒋嵵緔 提交于 2019-11-29 00:29:53
问题 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 file request is mytestsite.com...is there no way for the server handling the JS request to know that it originated from a google search? 回答1: A script tag will always refer to the document that is sourcing it. If you're doing something special on

Install referrer is not tracking on android web market

こ雲淡風輕ζ 提交于 2019-11-28 12:20:59
When installing an app via the Market app on a phone, the app will correctly receive the referrer information passed to it (as described here: http://code.google.com/mobile/analytics/docs/android/#android-market-tracking ). However, when installing the same app with the same referrer via the web-based Market, the referrer information is dropped and isn't received by the app. This makes campaigns targeting your app from the web impossible to track. Is it possible to track install referrer via android web market? No, it is not possible to track install referrer from the web-based Google Play

Redirect based on referrer URL

倖福魔咒の 提交于 2019-11-28 11:07:27
In my site I have a password protected page containing some links to other sites also operated by myself that cannot be password protected. I would like to place a HTML code onto one of the other sites I operate that checks that the person arriving at the page has been referred from the URL of the 'Links Page' . (I understand that this is not a secure option) Summary: If Referrer = 'Links Page URL' *then* Do nothing *Else* Redirect: www.google.com. Does anyone know a simple HTML/ Javascript code that I can copy and paste into my site? if (document.referrer !== "http://www.stackoverflow.com") {

Send a location hash through a referrer

ε祈祈猫儿з 提交于 2019-11-28 03:33:07
问题 I have a page where in Javascript I add to the location hash something like: location.hash = "initial_source=previous_referrer". Afterwards a window.location is done in order to redirect. However the receiver gets the referrer in his request without the hash (#) part. Is it possible to somehow modify the URL in the initial page, without a redirect, so the final referrer is what is desired? Thank you. 回答1: First, the hash portion of a URL is used on the client side only. It will never appear

Is there referrer header while using SSL?

佐手、 提交于 2019-11-28 02:02:06
Is there referrer header within domain while using SSL? If a website is accessed from a HTTP Secure (HTTPS) connection and a link points to anywhere except another secure location, then the referrer field is not sent. The upcoming standard HTML5 will support the attribute/value rel = "noreferrer" in order to instruct the user agent not to send a referrer. Source: http://en.wikipedia.org/wiki/HTTP_referrer So it seems referrer is not within the domain, but within SSL. At least Chrome supports now a Meta Tag which explicitly allows to send the Referrer when going from HTTPS to HTTP. Just include