Question with iFrames & Blanking Referrer

Total Noob

Banned - By Request
Joined
May 10, 2009
Messages
2,446
Reaction score
2,732
Hi,

I have an iFrame set up, but obviously I do not want to get caught and have it leaked.

I have my iFrame set up at http://www.site.com and it also goes to it if I enter http://www.site.com/index.php.

So when I am doing a DMR, should I do these scripts?

first one, goto.php
Code:
   <?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.site.com/goto2.php\">";
?>
second one, goto2.php
Code:
   <?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
    {
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://[B]www.affiliate.com/link.php[/B]\">";    
    }
else
    {
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.google.com\">";    
    }
?>
So right now if I sent them to http://www.site.com/goto.php it sends then to http://www.site.com/goto2.php and then goes to http://www.affiliate.com/link.php, and if it's not blank sends them to Google.

My question is, what do I put in http://www.affiliate.com/link.php? Because since it's iFramed, I'm not sure if I should put http://www.site.com or http://www.affiliate.com/afflink.

Any help would be great.

Jared
 
there's a new one for safari, called dmr 2.0 can be found in the forum.

Code:
<?php



    $referer = $_SERVER['HTTP_REFERER'];



    if($referer == "")

    

{



header("Location: http://bing.com");



}else{



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



}

?>






Code:
<?php



    $referer = $_SERVER['HTTP_REFERER'];



    if($referer == "")

    

{



header("Location: http://bing.com");



}else{



echo "<meta http-equiv=\"refresh\"content=\"0;url=http://dumpsite6000.com\">";



}

?>
replace bing.com with your aff link
replace dump site with another link to exit
replace
xyz.php with your second file


please note, each php tag represents another file.

so you have two files in total

the one above is the first landing and get rediercted to landing 2


advantages are, if there's no referer, you will directly go to the offer.



so basically you have your iframe now, the iframe loads your dmr and you will end up on your offers page.



Ok:
you have 3 files.
something like the page where your iframe code is contained ( say index.php )
and 2 files for your meta refresh.
inside the iframe code, it'll link to meta refresh 1
and then it'll go to meta refresh 2, if there's everything fine as well, it'll go to affinate link which you define in your code
 
Last edited:
Mondlicht, thanks for your reply. Having it for Safari as well is useful if I have people using mac's. My question is however, if I send them through the DMR to my iFramed page and they fill out the offer, will they be blanked? So I put my aff link as replaced with bing.com, or else they would be sent straight to the aff link if I put the real aff link which would be http://www.affsite.com/sdfsdfsdfsdf and I want them to go to the iFramed page, not the full page.
 
Back
Top