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

Looking for rotaing redirection script

Discussion in 'Cloaking and Content Generators' started by sapo, Dec 31, 2011.

  1. sapo

    sapo Power Member

    Joined:
    Feb 25, 2008
    Messages:
    510
    Likes Received:
    281
    I am looking for one that will go down the list, not to be random but, just go down the list.

    thanks.


    again rep to the one who helps ..
     
  2. koconder

    koconder Junior Member

    Joined:
    Oct 18, 2010
    Messages:
    116
    Likes Received:
    13
    Im happy to help, what do you want to rotate each visit randomly or spread equaly?

    Is php fine or do you need in another language... And can quickly whip this up as a freebie for +rep :)
     
    • Thanks Thanks x 1
  3. shubhamm

    shubhamm Junior Member

    Joined:
    Jan 25, 2010
    Messages:
    107
    Likes Received:
    25
    Occupation:
    Developer
    Location:
    BHW
    if you need in PHP or JavaScript then PM me

    it can be done by For Loop/ Foreach

    btw

    Happy New Year
     
  4. koconder

    koconder Junior Member

    Joined:
    Oct 18, 2010
    Messages:
    116
    Likes Received:
    13
    Here you go guys!

    Code:
    <?php
    $url=array(
    	'url1',
    	'url2',
    	'url3'
    );
    $random=rand(1,count($url));
    
    header ('HTTP/1.1 301 Moved Permanently');
    header ('Location: '.$url[$random]);
    
    //echo $url[$random];
    
    ?>
    
     
    • Thanks Thanks x 1
    Last edited: Jan 4, 2012
  5. koconder

    koconder Junior Member

    Joined:
    Oct 18, 2010
    Messages:
    116
    Likes Received:
    13
    If you need this to read from database or text file... let me know!