referrer

How can I get query information from referring search engines

I want to use the query that someone used to find my page, these are in the URL of the referring page $GET_['q'] (and for yahoo $GET_['p']). How can I use these? I want something like $query = REFERRING PAGE ($GET_['q']), but I just can't figure out the way to say it. ...

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. ...

How to pass HTTP referrer to PHP script

This seems like it should be simple. Any pointers would be much appreciated. Consider three sites: widgetserver.com, which serves widgets to client sites clientsite.com, which displays the widget previoussite.com, which is a site that links to clientsite.com In clientsite.com's page there is a piece of code that calls a PHP function...

Referrer not forwarded

We have the following probe query that works for a while, but it’s broken after most recent deploy onto a new set of machines. I debugged into our ISAPI Extension code and found out that the REFERRER was not forwarded over as expected. I checked the IIS settings, there is no difference between the machines showed problem and the produ...

Inject referrer action via action filter?

Is there a way to inject the referrer action from an action filter? Lets say I have a view that comes from action X. In dies view I call action Y and I want to redirect again to action X. (There are multiple X actions that call action Y). I thought that it could be nice if I had a parameter call referrerAction and an action filter that ...

ErrorDocument 404 Not Sending Referrer Information: PHP

I'm using a standard htaccess ErrorDocument 404 to redirect users to a new page. In order to customize the 404, I need to know their referrer information (from the page they Tried to visit). $_SERVER['HTTP_REFERER'] is empty I printed out all of my global variables and most contain the link to pageNotFound.php. How can I retrieve thi...

ASP.NET: UrlReferer has wrong value, interrogating in a static (webmethod) page called from jquery

Hi there, Can anyone help? I am trying to interrogate the UrlReferer whcih should contain Google.com but it contains my current site. My web page is a standard HTM page and jquery calls a static method like so [WebMethod] public static void ProcessTracking(string jsonString) Inside this method i do a standard lookup on Reques...

PHP, Session State, Redirecting "Home" Link Based on Referrer

Commonly, a website has a menu bar with links to different pages of the site— Home, Page A, Page B, etc.. Let’s say you have a site with address http://www.example.com. 99% when someone types that URL into their browser, they are directed to the page represented by “Home”. It usually has the optional extension of index[.html|.php] (e.g....

Using referrer to run script

I was wondering if it is possible to execute a script depending on the referrer site. for example if a user accesses my site from Facebook then i want the script to be activated, but if the user accessed the site through google search then the script will not be ran. Is this possible? ...

Script URL cross site confusion

If i have a script that uses an absolute URL for a script on another website, on which the script say clicked a link what would happen? would a referrer be sent to the destination of the link, and if so would it be from the original site, or from the site where the absolute Url of the script is located? Im sorry if this is confusing, as ...

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 on the regular expression are most welcome too ;) ...

manage amazon/cj affiliates with API?

Hi, I have a redirect.php?id=xyz page. The page redirects to an Amazon page with my affiliate link attached. I'd like to be able to see if and when someone buys using my referral, the id=xyz that I used to redirect them with. Is it possible to see the referring page? Thanks ...

Send a location hash through a referrer

Hi. 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...

using Request.UrlReferrer in vb.net code

i saw this article on msdn forum about Request.UrlReferrer but didnt really understand it well. I need to use this property in one of my pages to see where the user is coming from. My case is if the user comes from certain page, i need to have an if condition and should open up a popup as well as redirect page to next page. if the Reques...

What's the most reliable way of getting a page's referrer in IE?

From within a browser extension (BHO) I want to know the URL that referred a user to the current page. I thought I could just get the document.referrer, but I find that's blank if links are opened in a new window. Is this just tough bikkies or can I use opener.location.href in some cases, or something else? As a follow-up, I'm currently...

Obtain the referrer path in PHP

I have a only one .php (root/process.php) file for multiple languages root/en/command.htm root/fr/command.htm root/ru/command.htm and so one. However, for each of commands I have a thankYou.htm in the same folder: root/en/thankYou.htm root/fr/thankYou.htm root/ru/thankYou.htm How do I redirect the page after processing it in...

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 file request is mytestsite.com...is there no way for the server handling the JS request to...

Will a 302 redirect maintain the referer string?

Hello all, 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.mysite.com/pageB.jsp, which then executes a 302 redirect to http://www.mysite.com/pageC.jsp, I need th...

Get referrer percentage

What will be the best way to go about getting the referrer details like say google 20%, msn 10%, internal 70%. Its for finding out how each article posted on the site was viewed or accessed or referred. Not in google analytics. But its for the bloggers to check after they have posted a technical article. The app is in php and also uses Z...

javascript iframe link referrer

A page loads another domain in an iframe. If javascript inside the iframe clicks on a link in the iframe which domain will the referrer be? ...