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

Snippet of code to have random URL choosing in BHCB

Discussion in 'CPA' started by kimkils, Aug 4, 2009.

  1. kimkils

    kimkils Power Member

    Joined:
    Jan 10, 2009
    Messages:
    663
    Likes Received:
    225
    Have your Black Hat Code Breaker script link point to a php file with these contents in it, obviously change your links to your cpa redirector affiliate links ;)

    Code:
    <?php
    
    $random_url = array("http://www.yahoo.com",
    			    "http://www.google.com");
    srand(time());
    $random = (rand()%count($random_url));
    	
    header ("Location: $random_url[$random]");
    
    		
    ?>
    And it'll randomly pick one of the links to go to, handy for spreading the money :p
     
    • Thanks Thanks x 1
  2. uzzi69

    uzzi69 Regular Member

    Joined:
    Mar 9, 2008
    Messages:
    242
    Likes Received:
    254
    Location:
    HERE
    Thanks i've been looking for this...
     
  3. jambalayam

    jambalayam Newbie

    Joined:
    Apr 6, 2013
    Messages:
    3
    Likes Received:
    0
    Hi Can you add a referrer blocker anonymizer on this script? thank you in advance.