Double Meta Refresh and redirects

Status
Not open for further replies.
Why are people so reluctant to give away this method properly to all the newbies?


Look guys... what these other members are posting seemingly with a wink wink nudge nudge is that here..

if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";
}

where it says $referer = "" you are supposed to fill in the "" with the first URL.

Then on the FIRST meta refresh page to be even safer you can also fill in the referer == "" part where the url is the URL from which your visitors are clicking. Just incase the network somehow manage to find that first page, in which case if they found it...it would appear legitimate.

What I do on mine is just.

First url = www.yourfakereferingdomain.com/index.php?language=en

Or you can have some random subpage as your first URL then you wouldn't need the fake variable, but using the example above i have that fake language variable so that URL2 sees the first referer as a redirected visitor rather than a normal one. Not sure if you would be able to replace this part with an auto POST kind of method.

Make sure it's indexed in Google and has some links, make it look like it's getting traffic from a legitimate source.

second url = www.yourfakereferingdomain.com/landingpage.html

So you can use a fake html extension to make it look even more legitimate.
 
Last edited:
Someone please help me, i am new to this field... Please let me know how and where to upload these 2 files ???
Saved it to my computer as link1.php and link2.php as notepad files. Now what next? Where to go and upload them? Which domain?
Something like blogger? If so where to paste it in blogger?
 
do you have a back-issue problem? i've used cpa redirector but it has that back button issue where you tried to click back and it keeps on fwding you to the offer.

i've seen this done too...when u click a link on adwords..it goes to domainA.com..then it redirects to domainB.com really quick and then to the offer. would that show the referrer as domainA or domainB?

Let me check this.
 
Guys,
Is there anyway to hide the traffic (referer) coming from autosurf site?
Thanks
 
I hate to dig up an old(ish) thread, but does anyone have a good solution for Chrome? Just not redirecting will work, but I'd rather not lose that traffic if I can avoid it.
 
I'm constantly crashing on the second jump. It just sits at the 2nd URL and never pass on to the "Affiliate link" url... I'll have to keep working on it.
 
Can someone post an example code to like a test form (not an affiliate like obviously) because I can't get this to work..
 
Saberu, you couldnt be more wrong. The if($referer == "") checks to if the referer is blank. If it is, then it can echo on to your offer. That way a leaked refferer cant get through. A meta refresh is meant to blank the refferer as to remove it. So this information shouldnt be in the HTTP_REFFERER anyways. To do something like you were trying to do it would require you pass a varible through the URL like yourdomain.com/1.php?var=12345 Then retreieve it on the second page. Everyone please do not do it the way Saberu recomended or you WILL leak your refferer. Because your telling the script its ok to pass the redirect on to the offer even though your refferer is showing as whatever domain you add to the referer == "". Here is what I use. Is very similiar to some others with a little bit of Change.

File 1:
HTML:
<html>
    <head>
    <meta http-equiv="refresh" content="0;url=2.php" />
    </head>
</html>
That is just a basic HTML Meta Refresh

File 2:
PHP:
<?php
$cpa_offer_url = 'YOURCPAOFFER';
 
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=$cpa_offer_url\" />";
}else{
echo "<meta http-equiv=\"refresh\" content=\"0;url=1.php\" />";
}
?>

Basically what this does is if the refferer is NOT blank it will go back to File 1(which I name 1.php) This way it sends them through the DMR again. Again File 2 will check for refferer if its blank it will load the CPA offer if it is not...Will send through. This makes it so it WILL not leak your refferer.

Instructions:
Create a file called 1.php and paste the File 1 Contents into it
Create another file in the same directory called 2.php and paste the contents of File 2 into it.
change YOURCPAOFFER to your Aff Link
Send your traffic to yourdomain.com/1.php

Profit! Enjoy
 
Last edited:
Saberu, you couldnt be more wrong. The if($referer == "") checks to if the referer is blank. If it is, then it can echo on to your offer. That way a leaked refferer cant get through. A meta refresh is meant to blank the refferer as to remove it. So this information shouldnt be in the HTTP_REFFERER anyways. To do something like you were trying to do it would require you pass a varible through the URL like yourdomain.com/1.php?var=12345 Then retreieve it on the second page. Everyone please do not do it the way Saberu recomended or you WILL leak your refferer. Because your telling the script its ok to pass the redirect on to the offer even though your refferer is showing as whatever domain you add to the referer == "". Here is what I use. Is very similiar to some others with a little bit of Change.

File 1:
HTML:
<html>
    <head>
    <meta http-equiv="refresh" content="0;url=2.php" />
    </head>
</html>
That is just a basic HTML Meta Refresh

File 2:
PHP:
<?php
$cpa_offer_url = 'YOURCPAOFFER';
 
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=$cpa_offer_url\" />";
}else{
echo "<meta http-equiv=\"refresh\" content=\"0;url=1.php\" />";
}
?>

Basically what this does is if the refferer is NOT blank it will go back to File 1(which I name 1.php) This way it sends them through the DMR again. Again File 2 will check for refferer if its blank it will load the CPA offer if it is not...Will send through. This makes it so it WILL not leak your refferer.

Instructions:
Create a file called 1.php and paste the File 1 Contents into it
Create another file in the same directory called 2.php and paste the contents of File 2 into it.
change YOURCPAOFFER to your Aff Link
Send your traffic to yourdomain.com/1.php

Profit! Enjoy

This is one of the simplest, and most effective double meta-refreshes we've had here on BHW. I've seen it expressed a few ways, but it is essentially a very logical php progression.

In any event, I like it(AND continue to use it despite all the alternatives out there) ...but, it tends to leave out a lot of the viewing traffic in the form of visitors using browsers other than IE, and FF. So...and I don't release this info lightly...

You could always use a file to check what kind of browser they have first, and direct the traffic based on that first. Safari/Chrome, etc... users could be sent to a general products squeeze page - you'd get some optins. No need to worry about referrers for your own optin lists, right.

If you think about it...you're(we're) just leaving some money on the table by not doing something with the non-IE and non-FF browser traffic first.

Let me know if that isn't clear.
 
Saberu, you couldnt be more wrong. The if($referer == "") checks to if the referer is blank. If it is, then it can echo on to your offer. That way a leaked refferer cant get through. A meta refresh is meant to blank the refferer as to remove it. So this information shouldnt be in the HTTP_REFFERER anyways. To do something like you were trying to do it would require you pass a varible through the URL like yourdomain.com/1.php?var=12345 Then retreieve it on the second page. Everyone please do not do it the way Saberu recomended or you WILL leak your refferer. Because your telling the script its ok to pass the redirect on to the offer even though your refferer is showing as whatever domain you add to the referer == "". Here is what I use. Is very similiar to some others with a little bit of Change.

File 1:
HTML:
<html>
    <head>
    <meta http-equiv="refresh" content="0;url=2.php" />
    </head>
</html>
That is just a basic HTML Meta Refresh

File 2:
PHP:
<?php
$cpa_offer_url = 'YOURCPAOFFER';
 
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=$cpa_offer_url\" />";
}else{
echo "<meta http-equiv=\"refresh\" content=\"0;url=1.php\" />";
}
?>

Basically what this does is if the refferer is NOT blank it will go back to File 1(which I name 1.php) This way it sends them through the DMR again. Again File 2 will check for refferer if its blank it will load the CPA offer if it is not...Will send through. This makes it so it WILL not leak your refferer.

Instructions:
Create a file called 1.php and paste the File 1 Contents into it
Create another file in the same directory called 2.php and paste the contents of File 2 into it.
change YOURCPAOFFER to your Aff Link
Send your traffic to yourdomain.com/1.php

Profit! Enjoy

Hi, this script just keeps refreshing every millisecond, does this mean its not getting a referer? Also, how can I iframe an email submit with this script? Thanks.
 
If its looping through 1 and 2 it means its not blanking the refferer. To iframe a email submit with this. Simply iFrame the code with whatever you use (Cake Slice, or whatever) the code it give you will have your aff link in it. Replace that link with the link to 1.php that you created above. and in 2.php put your aff link in the CPAOFFERURL. If it keeps looping for you, try putting
Code:
[COLOR=#228822][URL="http://www.whatismyreferrer.com"]www.whatismyreferrer.com[/URL]
[/COLOR]in 2.php where 1.php is located there.
 
One important thing to note is that there is a downside to using DMR. It doesn?t work across all browsers! Sure it works fine on the two major browsers, Internet Explorer and Firefox. However, it doesn?t work on Safari, Chrome and Opera. If you have one of those browsers at your disposal, open one of them up and try clicking on my the two DMR links. Notice that the referer leaks out. This is bad, as just one leaked referer is enough to get you in trouble.
One solution is to put the first PHP file on your initial domain, and the second PHP file on a separate, unrelated domain. When you do that, a user using Safari would have its referer show up as coming from this unrelated domain. This is probably ok, as an affiliate manager still won?t be able to tell where the original source of traffic is coming from.
 
<?php

$agent = $_SERVER['HTTP_USER_AGENT']; // Access what browser they are using

if (preg_match("/\bMSIE\b/i", $agent)) {

echo 'You are using IE, you can pass.';

} else if (preg_match("/\bFirefox\b/i", $agent)) {


echo 'You are using Firefox, goodbye.';
exit(); // exit the script here

}

?>

Use that.. you can block any browser you want.. put it at the top of the first php file of the meta refresh.
 
also here is a script that will tell you the ua of the browser you are using.

<?php

$agentToBlock = $_SERVER['HTTP_USER_AGENT']; // this will tell you the agent you want to block

echo $agentToBlock;
?>
 
And if you just want the fool-proof method why nit just use Brads CPA Redirector?

Code:
http://www.contentgeneration.org/cpa-redirector-2/

This fakes the referrer and is dead simple to use. Brad is a member here too.
I'm looking for the CPA Redirector 6 since yesterday. Do you have a link where I can download it? That would be great. Thanks a lot.
 
Status
Not open for further replies.
Back
Top