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

Randomizing redirect paths?

Discussion in 'Cloaking and Content Generators' started by Crazy Monkey, Jan 13, 2016.

  1. Crazy Monkey

    Crazy Monkey Jr. VIP Jr. VIP

    Joined:
    Aug 4, 2015
    Messages:
    2,158
    Likes Received:
    279
    Gender:
    Male
    Location:
    In Jungle
    Does anyone have a script or know a method to make a redirect link randomly select different paths? For example, if my redirect was www.xxxx.com/loans it would redirect to three possible auto loan sites, being randomly picked each time? Thanks!
     
  2. Chiefjop

    Chiefjop Jr. VIP Jr. VIP

    Joined:
    Mar 25, 2013
    Messages:
    661
    Likes Received:
    126
    Hm, this could be a nice way for ads too.
     
  3. b1acky

    b1acky Newbie

    Joined:
    Jun 17, 2015
    Messages:
    47
    Likes Received:
    13
    You can do it from backend and frontend. For frontend you may use javascript to run smth like this on page load:
    Code:
    <script>location.replace("random_page_url");</script>
    Or from backend you may change html headers, doind basically same thing just without loading the brokering page first. Backend aproach is better as it prevents users from blocking random redirects and does not relay on javascript.
     
  4. JasonS

    JasonS Jr. VIP Jr. VIP

    Joined:
    Sep 15, 2012
    Messages:
    3,034
    Likes Received:
    929