https + iframe = blank referrer?

martin posted how to blank referer.. but it was said that doesnt work in opera.. any one know code to blank in all browsers?
 
Making it so the browser doesn't pass a referer to wherever you're redirecting to.

I always just used javascript. Never used to pass anything. Maybe they've changed things? I'd probably just create a landing page with an iframe inside that uses a framebreaker. Or use flash. I'll have to try some stuff out tomorrow.
 
I always just used javascript. Never used to pass anything. Maybe they've changed things? I'd probably just create a landing page with an iframe inside that uses a framebreaker. Or use flash. I'll have to try some stuff out tomorrow.

I hope u can share ur technique with rest of us..
 
The javascript is passing referrers for me on firefox now. I just installed opera and tested firefox and opera on linux.

Firefox meta refresh - None
Firefox javascript - document.location.href - URL of the jump page
Firefox javascript in iframe - top.location.href - URL of the iframe src
Firefox flash - URL of the jump page

Opera meta refresh - None
Opera javascript - None
Opera javascript in iframe - None
Opera flash - None

No idea about internet explorer. I know that older versions didn't pass referrers unless it was a click on a link.
 
Here try this with a bunch of browsers and see if any get through.

PHP:
<?php

/*
   Name this dmr.php
   Use: dmr.php?url=http://www.ebay.com/i-am-a-nice-affiliate
*/

dmr();

function dmr() {
	$url = $_GET['url']; 

	// Where you will send them if it fails
	$crap = 'http://your-best-viagra-rimjobs.com/vicodin-sluts'; 
	
	
	if ( $_SERVER['HTTP_REFERER'] == "" ) {
		// If it's blank, who the hell cares?
		refresh($url);
		die();
	} else if ( $_GET['tried'] == '1' ) {
		// Already tried it, fuck it. Zango city.
		refresh($crap);
	} else {
		// Let's try this one more time
		refresh( "dmr.php?url=" . urlencode($url) . 
			"&tried=1" ); // I mean it, one more try
	}
}

function refresh($url) {
	echo "<meta http-equiv='refresh' content='0; url=$url'>";
}

?>
 
Faking referrer is prefered if possible. A blank referrer might raise questions and it's not so easy to blank referrer for all browsers.
 
^^ Of course... but faking referrers is probably even harder to accomplish.
 
I just ran a test for my referral from https (Using the free SSL that came with my Yahoo Hosting). It came back blank. I linked to the following site to check my referrer: auditmypc.com/anonymous-surfing.asp
 
Browsers like safari will leak the referer through a meta refresh (Safari gives the referer of the script page for javascript form submit, location change, and meta refresh.) Hence the need for a double meta in general.

Spoofing can be done by redirecting to another domain with a POST argument (via a javascript form submit) and from there being sent to the target via another javascript redirect. (ONLY if proper post variables are set--otherwise display a normal white hat page.) Javascript redirects give the location of the page w/ the script on it, i.e. your whitehat page. However--when it is visited by an affiliate manager, he'll see the whitehat page as he does not have the proper POST variable set to see the redirect version of the page. You'll look legit and all is well.
 
Back
Top