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

Easiest way to rotate offers...

Discussion in 'BlackHat Lounge' started by OnlineGodfather, Mar 1, 2011.

  1. OnlineGodfather

    OnlineGodfather Senior Member

    Joined:
    Mar 3, 2010
    Messages:
    1,117
    Likes Received:
    406
    Occupation:
    Interwebs
    Location:
    Russia
    Hey,

    whats the easiest way to rotate offers, let me show you what i mean:

    i want when users click on the link it redirects them to random links of my choice. those links will be offers from different cpas.

    Tnx in advance for every help.
     
  2. Velvet

    Velvet Junior Member

    Joined:
    Feb 18, 2009
    Messages:
    199
    Likes Received:
    146
    tarcking202 free ppc tracking script..you can add an offer and you can rotate up to 5 offers randomly with 1 link, can track the clicks and the conversions also

     
  3. JesusBack

    JesusBack Executive VIP Premium Member

    Joined:
    Sep 15, 2010
    Messages:
    1,159
    Likes Received:
    1,284
    Occupation:
    Almost done :D
    Location:
    {calm|cool|collected}
    PHP:
    <?php
    $x 
    rand(1,2);
    if(
    $x == 1header('Location: http://offerone');
    else if(
    $x ==2header('Location: http://offertwo');
    ?>


     
  4. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Or so you don't have to keep using if-else statements:
    PHP:
    <?
    $sites = array(
              
    "http://www.redirect1.com",
              
    "http://www.redirect2.com"
         
    );
    $id array_rand($sites);
    $site $sites[$id];
    header("Location: $site");
    ?>
     
  5. golk75

    golk75 Regular Member

    Joined:
    Jul 25, 2010
    Messages:
    228
    Likes Received:
    25
    Occupation:
    Here
    Location:
    Top of the World
    How do I combine this with a 100% iFrame?
    So basicly i have 3 offers that i would like to randomly open in my URL iframe.