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

This is How You Rotate Offers in BHCB

Discussion in 'Making Money' started by GreenDolla, Jan 8, 2010.

Tags:
  1. GreenDolla

    GreenDolla Regular Member

    Joined:
    Nov 13, 2009
    Messages:
    260
    Likes Received:
    74
    Occupation:
    Mobile
    Location:
    Atlanta
    All right guys thanks to kimkils i finally found a way to rotate offers in bhcb. I looked all over the place and could not find a way to rotate offers in bhcb without URL rotators, so i hope this helps somebody.

    If your lazy like me just download the attached file.

    All right first you make a PHP file named whateveryouwant.php, then you insert this code into the php file you just made.

    PHP:
    <?php

    $random_url 
    = array("http://www.site1.com",
    "http://www.site2.com","http://www.site3.com","http://www.site4.com");
                
    srand(time());
                
    $random = (rand()%count($random_url));
            
                
    header ("Location: $random_url[$random]"); 
    Edit the code for whatever offers you want to be rotated.

    Now all you have to do is place the link to whateveryouwant.php into links.txt, so instead of placing your CPA link in the links.txt place the link to the php file you just made like so, http://yoursite.com/whateveryouwant.php

    That's It Your Done, No More Dam URL Rotators, this code is set to randomly rotate offers but you can fine tune it yourself to whatever you like, it also has some type of Geo redirect but i don't know how to use so i left it alone. Hope this helped somebody.
     

    Attached Files:

    • Thanks Thanks x 6
  2. J1218

    J1218 Power Member

    Joined:
    Jan 9, 2010
    Messages:
    675
    Likes Received:
    401
    Looks good, I'm about to start using BHCB myself and this is one of the things I was wondering about. Thanks for sharing.
     
  3. Chrome

    Chrome Newbie

    Joined:
    Apr 2, 2009
    Messages:
    20
    Likes Received:
    0
    If you use this to rotate your ads, will the built in refferer hiding option still work?
     
  4. ChanzGrande

    ChanzGrande Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 16, 2008
    Messages:
    2,484
    Likes Received:
    1,158
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    This thread was recently linked to by someone who wanted to know a way to effectively Rotate offers in BHCB. This approach is flawed.

    The referrer will definitely show as this PHP script should you use it. Assuming you are referring traffic from a legitimate WH domain, that will be no big deal. But if you are actually using it primarilly on your BH site - that's what your affiliate managers will see.

    One thing you can possibly do to compensate for this is only put urls into this script that are already feeding through a double meta-refresh, or through Brad's CPA-R. That way your referrer blanking, or spoofing remains intact.