referrer

xmlhttprequest to spoof referer then redirect to another page?

Hello, I've created some code using curl (PHP) which allows me to spoof the referrer or blank the referer then direct the user to another page with an spoofed referrer. However the drawback to this is the IP address in the headers will always be the IP of my server, which isn't a valid solution. The question; Is it possible using cl...

*nix hosting - redirect download to homepage if referrer doesn't match

I have a software package placed in the root directory of my website. I'd like all visitors which come from other websites to see the homepage first, before they download. How can I do that without using a script? ...

how do I assign page referrer to a php variable

I am using javascript to get the referring page (document.referrer) which works fine and I can add this value to a div no problem. How do I assign this value to a PHP variable in order to do some other things with it? Ideally, something like: $myphpvariable = document.referrer; ...

Strange Encoding problem - hebrew

I have a script which tracks visits & referers to a website. I send the document.referrer (I use escape() in javascript) to the server and store the string in the database, after decoding it using HttpUtility.HtmlDecode (C#). For most cases, I can parse the referer string and show hebrew characters, but there are a few cases which I ca...

JS / PHP or APACHE redirect keeping referrer intact with IE?

Hi Does anyone know how to make a JS / PHP or APACHE redirect while keeping the referrer intact with IE? ...

Scraping a page from a secure URL which is possibly using a session ID

How to scrape a page like this. https://www.procom.ca/JobList.aspx?keywords=&Cities=&reference=&JobType=0 It is secure, and requires a referrer? I can't get anything using wget or httplib2. If you go through this page, you get a list and it works on a browser but not the command line. https://www.procom.ca/jobsearch.aspx ...

Redirect user in php without revieling referer of page that redirected

How would I Redirect user in php without revieling referer of page that redirected I figured I'd simply do something like this :: ( code example 2 ) :: http://www.mustap.com/phpzone_post_62_how-to-bypass-the-referer-se with the Get method , Simple example of what im trying to do is redirect to google without the referer of the php page...

How do I identify the referrer page in ASP.NET?

In VS2003, I am trying to find out the particular page where the request is coming from. I want to identify the exact aspx page name. Is there a way to only get the page name or some how strip the page name? Currently I am using the following instruction... string referencepage = HttpContext.Current.Request.UrlReferrer.ToString(); a...

Hide Referer (PHP, or HTML, or JS Doesn't matter)

Hi, I'm using something like this mysite.com/out.php?url=outurl.com I'm just using a simple redirect, but I'm just wondering how I can hide the referrer. Thanks! edit: I ended up doing a double meta refresh ...

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

how to accurately get referrer in actionscript widget

Hi, I have an embedable widget. For each impression, I would like to track the referrer (the page where the widget is embedded onto). Right now I am using ExternalInterface to use javascript to check window.location.href when its available, however, I am finding that most of the time I am unable to set the referrer. Is there a bette...

Tracking page referrer on first page view of a visitor in rails app

Hi, I want to be able to read the referrer of visitors coming from certain domains when they come to any subpage of a rails app. How would I handle that before the controllers come into play ? (I want a general solution for alle pages, not to check it on every single controller) Any hints appreciated. ...

Asp.net Response.Redirect - Incorrect referrer

I have a asp.net application that i use for traffic tracking. I get a incoming visitor from several source websites and redirect the visitor to the target website using Response.Redirect(url); The problem is that currently the referer shown to the target website (after i redirect) is of the url of the source website and not my website....

Alternative Header() command to set Referer in PHP?

Hello PHP magicians! I am trying to initiate a download from a server that will give a 403 forbidden unless the referrer is set to the same domain. Currently Header() allows me to redirect the user to the file location and init a download, but referrer is always set to my script. Use of curl would cause the file to download on the serve...

Redirect visitor and create new referrer info? (some PHP)

I have 2 websites -- website A is the primary 'marketing' site that receives traffic and website B is the site where people make a purchase. Site B's reporting system provides me with the referring URL from site A that resulted in a purchase. Site A has a variety of call to action links that go to site B, and I would like to measure wh...

PHP referrer: How to make sure a request is actually coming from where it's supposed to come from.

I would like to put a link back to my site on other "approved" domains. When they click on the link it goes to a page that checks the referrer ($_SERVER['HTTP_REFERRER']) to make sure they came from a domain that is approved to have my link. This can be spoofed so how can I make sure the clicks are actually coming from the approved domai...

get referer of website that is requesting your js file

I have an embed script that simply does this: document.write(unescape('%3Cscript src="' + mp_protocol + 'blah.cloudapp.net/js?location="' + window.location +' type="text/javascript"%3E%3C/script%3E')); As you can see right now the URL of the webpage that is embedding the code is passed in using window.location. But this can easily be ...

Detemine the previous page (i.e. referrer) in jQTouch

I am trying to determine the previous page (e.g. the referrer) in order to decide whether to display the back button. I tried to check for $('.current').data('referrer'), but it is not always set. In fact, it is often not set. history.previous and document.referrer do not seem to be set, either. Could someone please enlighten me on th...

Save HTTP_REFERER with mod_rewrite?

Hi everybody, actually I'm trying to pass referers inside the .htaccess. What I'm trying to do is that the referer value shall be send to a PHP script where this value will be saved to a databse. In some cases (depending on the referer) the image shall be blocked (hot linking) and in some other cases the image shall be shown normally. B...

Changing http-referer via a redirect

We are signing up to an online resource that uses http-referer as authentication (bad idea, I know) to prove that the request comes from our intranet (IP address is not available for this as there is a higher level proxy). Unfortunately it might be that their system requires a specific referer URL rather than taking the domain. This wil...