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

url rotators

Discussion in 'CPA' started by onlyme, Jan 9, 2010.

  1. onlyme

    onlyme BANNED BANNED

    May 26, 2009
    Likes Received:
    Not sure what section to put this in, but im looking for a free url rotator. I used one a long time ago with ewhoring, and worked like a charm, but cant seem to find it now. Basically, I want to spread my traffic around to all kind of networks with one link. Antone know of a good provider?
  2. nerdmoney

    nerdmoney Junior Member

    Feb 24, 2008
    Likes Received:
    web nerd
    you can make your own.
    here is a sample php script
    $sites[0] = array("www.site1.com", 5);
    $sites[1] = array("www.site2.com", 3);
    $sites[2] = array("www.site3.com", 1);
    $countsites = count($sites);
    for($i=0; $i<$countsites; $i++)
    	for($x=0; $x<$sites[$i][1]; $x++)
    		$mylist[] = array($sites[$i][0]);
    $countlist = count($mylist);
    $countlist = $countlist - 1;
    $picker = rand(0, $countlist);
    $picked = $mylist[$picker][0];
    header("Location: http://" . $picked);
    you can also change the header with a meta refresh, add a magic key for cloaking, or whatever, there are some other ways too. but this is pretty simple. The number next to the url is the wieght, ie five times for url one, three time for url two, one time for url three, in a mathamagical equation.
    • Thanks Thanks x 3