http-referer

How do I get the siteURL calling my page when it is loaded in an iFrame?

Is it as easy as $ENV{'HTTP_REFERER'}? or is there something else that I need to do? Example: My Site: sample.php Calling Site w/iFrame: somesite.com I want sample.php when it loads to be able to use "somesite.com" for input as a variable. ...

http_referer lost using https

Picture two web pages, both viewed using https. They reside on different domains. How can I (reasonably) ensure that someone arriving at my page came via a hyperlink that resides on another (specific) domain? I only want to allow traffic from that domain. Any ideas on the best way to accomplish this would be appreciated. I tried loo...

IFrame referer question - asp.net c#

Hi, One of our application will be run in an iframe, inside salesforce and I'm having troubles with accessing the referer. They'd like us to do some referer checks, to make sure the request is coming from salesforce and we've been given the IP addresses to check against. My problem is that anytime I try to access the referer through ei...

What would HTTP referrer be?

What would the HTTP referrer be in the following cases: User clicks a link on a website and arrives at a different website that is hot linking an image from a 3rd website, what would the referrer be on the image. User clicks a link that goes to a different website that uses META Refresh to send them back to the first website. User clic...

Google is changing its referrer URLs from /search into /url. Any known issues?

...

Referer in php-

Hello everyone, What is the best method of doing the following: I have Page A with 2 buttons(for different things) which both take you to a login page(Page 3), When login details are filled in Page 3, the page that handles the data is page 4. I want page 4 to show things depending on which button was clicked in page a. I have read upon ...

HTTP Referer header in Struts 2

How can I get the Referer header under Struts2? Right now I'm using an ActionSupport class and I can't seem to get a ServletActionContext object or implement the ServletRequestAware interface? (Where is ServletRequestAware in Struts2? which jar?) I'm trying to set up an automatic redirect to a page's referer, stored in a session variabl...

How to tell where the user is coming from?

Is there a reliable way to determine where a user is coming from in an ASP.NET application? We have a web application that is linked to from two different locations. The two links are on separate domains, and they need to dictate certain user permissions within this app. Here's what I have tried so far... Using Request.UrlReferrer (...

Duplicate Referrer Header - HTTP.sys barfs

I have been testing the PS3 browser (NetFront) with embedded Flash components on a web page and there seems to be a rather serious bug with the way that any requests from Flash are issued. The browser is adding a referrer (referer) and so is the Flash player resulting in duplicate headers. This is actually OK if the referrer headers are ...

Can I use the Google AJAX Feed API REST interface from a native iPhone App?

Google states the following in the AJAX Feed API docs:"Applications MUST always include a valid and accurate http referer header in their requests." I am building a native iPhone application and would like to use the Google AJAX Feed API's REST interface from my app's native objective-c code. Is the API only for use on websites, or can ...

Get original URL referer with PHP?

I am using $_SERVER['HTTP_REFERER']; to get the referer Url. It works as expected until the user clicks another page and the referer changes to the last page. How do I store the original referring Url? ...

PHP, HTTP_REFERER not working on iframe??

Okay, here is my situation. I have a page, index.php, which is the mainsite (flash site) I have another page called iframe.php which contain iframe of index.php Another page, test.php. Inside have 2 links, 1st link is directly to index.php, another link is to iframe.php I tested: I click the 1st link, when i trace/echo the HTTP_REF...

PHP: Returning a user to their original page after login

Are there any 'best practices' concerning how one should return a user to their original page after logging in to your website, specifically in PHP? e.g. if I'm viewing a StackOverflow question while not logged in, how would you ensure that I return to this question if I logged in? From my research, it seems a lot of advice centers arou...

Maintain HTTP Referer

Hey, I've setup some redirects on an Apache server. They look at bit like this: Redirect /Name/register /login.html My question is this... is there anyway to preserve the HTTP Referrer through this redirect? It would seem that by default, Apache discards the information. I would really like it if after the redirect was complete the re...

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

Am I in an IFRAME, how do I figure it out in PHP?

How do I figure out in my PHP's code if I am in an iframe or not? I'd like the page to behave slightly differently. I was going to use HTTP_REFERER but that doesn't seem very reliable. ...

How to save http referer in rails

I'm trying to save the site that a user came from when they sign up. Right now I have a before_filter in my ApplicationController: before_filter :save_referer def save_referer unless is_logged_in? session['referer'] = request.env["HTTP_REFERER"] unless session['referer'] end end Then when a user is created, it chec...

i have big problem in HTTP_REFERER

now i make simple system in my site and this its code if(stc($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])){ //download directly }else{ //open page first } function stc($haystack, $needle, $offset=0) { return strpos(strtoupper($haystack), strtoupper($needle), $offset); } if any one enterd the link from my site its download dire...

find the website url when it hits my landing page, like the url

i want to find out the websites that are people are coming from when they come on my website. so lets say someone comes from google.com or yahoo.com or someone came through email or somewhere else. how can i do this? ...

Knowing if a script is called from an iframe on another host in PHP (hopefuly without Javascript)

I want to identify if a PHP script is being called inside an iframe of a different host. I could resort to using Javascript for that, but I'd like to find a JS-free solution first. Right now I'm using this logic: If $_SERVER['HTTP_HOST'] is not equal to the host name of $_SERVER['HTTP_REFERER'] And $_SERVER['REDIRECT_STATUS'] is de...