1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Am I blanking my referrer correctly?

Discussion in 'CPA' started by rydg187, Aug 23, 2009.

  1. rydg187

    rydg187 Registered Member

    Joined:
    Jun 26, 2009
    Messages:
    87
    Likes Received:
    4
    Am I blanking my referrer correctly? I been doing a lot of searching on the forums here, but I admit I am still confused because I see so many terms blanking/blocking/hiding/cloaking/faking/spoofing/redirecting.
    I don't know if they all mean the same thing or not. Also then people talk about your referrer leaking. So I prepared this video of what I did and want you guys to tell me if my true referrer will leak and if there is anything else I should know about? Am I doing things right? Here is the video http://www.screencast.com/t/pheFy6JUndK

    here is the prosper 202 website
    http://prosper.tracking202.com/scripts/cloaking-referers/
    http://prosper.tracking202.com/scripts/rotate-offers/

    Here is the redirect script below
    Redirect.php

    <html>

    <!-- Replace http://google.com with whatever url you like !-->

    <head>
    <title>Google</title>
    <meta name="robots" content="noindex">
    <meta http-equiv="refresh" content="1; url=http://google.com">
    </head>
    <body>

    <form name="form1" id="form1" method="get" action="http://google.com"></form>
    <script type="text/javascript">
    document.form1.submit();
    </script>

    <div style="padding: 30px; text-align: center;">
    You are being automatically redirected to Google.<br/><br/>
    Page Stuck? <a href="http://google.com">Click Here</a>.
    </div>

    </body>
    </html>






    And here is the rotate script below
    Rotate.php PHP Code

    <?

    //Tracking202 Offer Rotation Script

    //enter your affiliate urls below, you can enter as many as you want, please
    //make sure that you have the affiliate url with the SUBID syntax at the end
    //of it, for reference goto: subids.com for more information.
    $offer[1] = 'http://myaffiliateurl.com?subid=';
    $offer[2] = 'http://myaffiliateurl2.com?subid=';
    $offer[3] = 'http://myaffiliateurl3.com?subid=';

    //this is the text file, which will be stored in the same directory as this file,
    //count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.
    $myFile = "count.txt";

    //open the txt file
    $fh = @fopen($myFile, 'r');
    $offerNumber = @fread($fh, 5);
    @fclose($fh);

    //see which landing page is next in line to be shown.
    if ($offerNumber >= count($offer)) {
    $offerNumber = 1;
    } else {
    $offerNumber = $offerNumber + 1;
    }

    //write to the txt file.
    $fh = fopen($myFile, 'w') or die("can't open file");
    $stringData = $offerNumber . "\n";
    fwrite($fh, $stringData);
    fclose($fh);

    //grab the subid that t202 adds
    $subid = $_GET['subid'];

    //redirect to the affilate url, + add the subid at the end
    header('location: ' .$offer[$offerNumber] . $subid);

    ?>