How To Easily Fake The Referrer When Using Double Meta Refresh

metalcolin

Newbie
Joined
Oct 1, 2008
Messages
30
Reaction score
69
Here is a simple way to hide your real traffic source and show your CPA a fake referrer. I am going to assume you already know how to implement double meta refresh to blank your traffic source, if not please see http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/20750-double-meta-refresh-redirects.html

Ok you know how to make your referrer blank which is great but some (or most) CPA's want to know how you get your traffic, if you don't your aff manager might give you some shit if you bring in serious money. Plus I hate to have to SLOW DOWN on how much I milk an offer just bc I get traffic from a source they don't like.

A very simple way of faking your referrer is to set up a selective page redirect using simple javascript on a genuine landing page. Here is the code:

HTML:
<script language=Javascript>
var ref;
ref=document.referrer;

if (ref.replace("YOUR_REFERRER.com","") != ref)
{
window.location.href='http://www.Genuinely .com';
}
//=====Code By: metalcolin=====
if (ref.replace("YOUR_REFERRER_2.com","") != ref)
{
window.location.href='http://YOUR_CPA_OFFER.com';
}
//===== metalcolin ======
if (ref.replace("http://YOUR_REFERRER_3.com","") != ref)
{
window.location.href='http://www.YOUR_CPA_OFFER.com';
}
//=====
</script>

This is how you do it, you set up your basic double meta to point to your landing page and configure your javascript to redirect the traffic coming from your 2nd redirects ONLY (important). For example, in the 'YOUR_REFERRER.com' you put in the FULL url of your 2nd meta refresh which will only redirect the traffic that comes from that source and it will leave the referrer as your landing page for your CPA network to see (which is what you want).

When someone from the CPA Network comes to check out your landing page they will NOT be redirected and everything looks perfectly legit :)

Some reputation points or thanks would be appreciated....

BTW, what are the rep points good for anyway? .. Serious question, im new here so i don't know.
 
This idea sounds great, but it does not work on my FF :(
 
what message do you get? or whats does it do?
 
Ive used the javascript for a while yea. Let me see if I missed something
 
Where is my post? I just posted and its gone.
 
I just realized what I forgot. You will need to have double meta refresh and two redirects. Sounds like a Lot but it will do the deal 100%.

HTML:
<script language=Javascript>
var ref;
ref=document.referrer;

if (ref.replace("","") != ref)
{
window.location.href='http://YOUR_LANDING_PAGE.com';
}
//=====Code By: metalcolin=====
if (ref.replace("","") != ref)
{
window.location.href='';
}
//===== metalcolin ======
if (ref.replace("","") != ref)
{
window.location.href='';
}
//=====
</script>

Basically you would put this one in your 3rd page pointing to the selective redirect (landing page) since the double meta wont leave a referrer. I'll post a more detailed outline to drive the point home. Let me know if this helps.
 
Alright, here is the fixed version.​

You will have 4 PAGES all together which will perform redirects. Pages 1 and 2 will do the initial redirecting to clear the referrer. Page 3 is an intermediary to create a referrer from one of your whitehat domains and finally Page 4 will pass the referrer on to your CPA Network AND it will act as a front for how legitimate your practices are in the case someone visits it without going throug the redirects.

This is how it all will look,

PAGE 1:

Code:
<?php

        echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.YOURDOMAIN.com/PAGE2.php\">";

?>

PAGE 2:

Code:
<?php

    $referer = $_SERVER['HTTP_REFERER'];

    if($referer == "")

    {

        echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.YOURDOMAIN.com/PAGE3.htm\">";    

    }

?>

PAGE 3:

Code:
<script type="text/javascript">
<!--
window.location = "http://www.YOURDOMAIN.com/PAGE4.htm"
//-->
</script>

PAGE 4:

Code:
<script language=Javascript>
var ref;
ref=document.referrer;

if (ref.replace("YOURDOMAIN.com/PAGE3.htm","") != ref)
{
window.location.href='http://www.YOUR_CPA_OFFER.com';
}
//=====Code By: metalcolin=====
if (ref.replace("YOUR_REFERRER_2.com","") != ref)
{
window.location.href='http://YOUR_CPA_OFFER.com';
}
//===== metalcolin ======
if (ref.replace("http://YOUR_REFERRER_3.com","") != ref)
{
window.location.href='http://www.YOUR_CPA_OFFER.com';
}
//=====
</script>

You can see the working version here: lokulo*ku*0rg/URL1.php

The final landing page is lokulo*ku*0rg/re2.htm if you go to this url without going to URL1.php you will see the landing page.

Sorry for the confusion, again could someone tell me what the reputation points count towards?
 
Last edited:
it works with FireFox, but it does Not seem to work with Opera and Safari, what i see inside Opera is that URL1 is redirecting to URL2, but that's where it ends, no further redirection to CPA offer page, i DONT know but this can cause problems if affiliate manager visits your page using Opera/Safari !! we need to be careful here... did u test this will ALL popular browsers ?? i mean did u test it with IE, FireFox, Opera, Safari ??
 
it works with FireFox, but it does Not seem to work with Opera and Safari, what i see inside Opera is that URL1 is redirecting to URL2, but that's where it ends, no further redirection to CPA offer page, i DONT know but this can cause problems if affiliate manager visits your page using Opera/Safari !! we need to be careful here... did u test this will ALL popular browsers ?? i mean did u test it with IE, FireFox, Opera, Safari ??

you AM will only visit your landing page not the redirect pages.
 
i know much more simple method, go to polish site http://skocz.pl and add your affiliate link to it (it is a site like tiny url) and your referrer will be blank. I have checked this method by adding check referrer page url to skocz.pl and always i saw blank referrer
 
thank you for share. Also i have tested with tinyurl with all browsers (exept opera since forgot it existed lol) But anyways :)

if some1 would know how to fake your refer to be from google search or so would be like supercool , lol ;)
 
Doesn't work on Google Chrome either...

Nice idea, slightly confusing though.
 
I've been doing something similar - but i didnt blank my referrers - In a sense i show the network my BLACKHAT site..but thats not what they see.. ill show you what i mean..

First you gotta send all your traffic to this page
PAGE1.com (http://www.PAGE1.com)
Code:
<body onload="javascript:frmForcedReferrer.submit();">
<form action="http://www.PAGE2.com" method="post" name="frmForcedReferrer">
</form>

On page 2 - you'll get the browser to detect the referrer and show what you want to show them...So PAGE 1 REDRECTS to PAGE 2...(the code above forces the referrer ot be passed)

Page 2 - (http://www.PAGE2.com)
Code:
<?php

    $referer = $_SERVER['HTTP_REFERER'];

    if($referer == "http://www.PAGE1.com")

    {

        echo "

Put your BLACKHAT SITE SOURCE in here - you can use HTML (bascially show the entire html WEBSITE source

";    

    }

else

{
        echo "
SHOW YOUR WHITEHAT HTML CODE HERE

";
}
?>

As you can see all i did was manipulate the DMR and changed it to a forced redirect. Your blackhat page will only be shown if they come from PAGE1.com. So you'll be passing your referrer off the the networks using PAGE2.com - if they get suspcicious they'll take a look at it and they'll see a nice whitehat page that has no sign of blackhat in site. Not in your source no where..

I've tested this and it has been working as far as i know. Test it out for yourself to test if it works. Im sure you can insert an extra page in here and have the whtiehat and blackhat site be on seperate domains but its up to you lol
 
@ Siek: I'm only confused at what you mean by "SHOW YOUR WHITEHAT HTML CODE HERE" and the BLACKHAT SITE SOUCE? Like you mean the ENTIRE html from the webpage? Or like... one of those simpler meta refresh code mentioned in those other threads?

Like

Code:
echo "<meta http-equiv="refresh" content="0;url=http://www.YOURDOMAIN.com/PAGE3.htm">";

???
 
I've been doing something similar - but i didnt blank my referrers - In a sense i show the network my BLACKHAT site..but thats not what they see.. ill show you what i mean..

First you gotta send all your traffic to this page
PAGE1.com (http://www.PAGE1.com)
Code:
<body onload="javascript:frmForcedReferrer.submit();">
<form action="http://www.PAGE2.com" method="post" name="frmForcedReferrer">
</form>

On page 2 - you'll get the browser to detect the referrer and show what you want to show them...So PAGE 1 REDRECTS to PAGE 2...(the code above forces the referrer ot be passed)

Page 2 - (http://www.PAGE2.com)
Code:
<?php

    $referer = $_SERVER['HTTP_REFERER'];

    if($referer == "http://www.PAGE1.com")

    {

        echo "

Put your BLACKHAT SITE SOURCE in here - you can use HTML (bascially show the entire html WEBSITE source

";    

    }

else

{
        echo "
SHOW YOUR WHITEHAT HTML CODE HERE

";
}
?>

As you can see all i did was manipulate the DMR and changed it to a forced redirect. Your blackhat page will only be shown if they come from PAGE1.com. So you'll be passing your referrer off the the networks using PAGE2.com - if they get suspcicious they'll take a look at it and they'll see a nice whitehat page that has no sign of blackhat in site. Not in your source no where..

I've tested this and it has been working as far as i know. Test it out for yourself to test if it works. Im sure you can insert an extra page in here and have the whtiehat and blackhat site be on seperate domains but its up to you lol

You are a genius. You know when you come across an idea and think why didn't I think of that? You have just completed solved something I've been trying to figure a way around all night.
 
@ Siek: I'm only confused at what you mean by "SHOW YOUR WHITEHAT HTML CODE HERE" and the BLACKHAT SITE SOUCE? Like you mean the ENTIRE html from the webpage? Or like... one of those simpler meta refresh code mentioned in those other threads?

Like

Code:
echo "<meta http-equiv="refresh" content="0;url=http://www.YOURDOMAIN.com/PAGE3.htm">";

???

Yes i do mean your entire WHITEHAT PAGE SOURCE...your entire HTML...bascially if your browser detects the referrer then it'll show the balckhat site...(THE HTML SOURCE).. you can do redirects if you want same thing i guess lol Its just if your doing your blackhat stuff and the referrer is passed on a certain page..then a redirect wont make much sense to the AM's..

BTW theres two thing si forgot to mention
1) this is a PHP page document so it has to be a PHP file not an HTML or HTM file
2) This has to do with echoing out HTML SOURCES...PHP does not like double quotes (") b/c its screws with the coding...so when your echoing your HTML source - before every double quote (") put this slash infront of each one () or just use single quotes (') and it'll do the same thing... remember the doubel quotes only in your ECHO HTML Source is needed..

Just realized that it doesnt shoudl the single slash its the one that goes from TOP LEFT to BOTTOM RIGHT (the slash is above my enter button)
 
Last edited:
You can see the working version here: lokulo*ku*0rg/URL1.php [/QUOTE said:
I tried your working version. Great work! :)

However after 3 hours of trying, I have not been able to get your code to work for me. I created made 4 pages as you instructed but the redirect do not go all the way thru to page 4. For me everything stops at page #2.
Please help.

Page 3 & 4 should be html pages not php pages correct?
Should the page 3 and page 4 javascript be inserted into the header section of page 3 and 4 respectively?

What am I doing wrong? Please help a.s.a.p.

Thanks Much,
BugsBunny
 
Back
Top