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

$5 paypal to the first person to help me with this script!

Discussion in 'Making Money' started by magcshroom, Mar 27, 2009.

  1. magcshroom

    magcshroom Regular Member

    Joined:
    Nov 7, 2008
    Messages:
    275
    Likes Received:
    117
    Ok, so basically i need to be able to send traffic to 1 link, and then randomly send clicks to my affiliate links. I have tested the script and it fakes the referrer 100%. Anyways, i need the code edited so i can add as many affilaite links as i want, and then the code chooses a random one and sends the traffic. First person gets $5!

    Code:
    <?php
    
    $site1 = "http://www.site1.com";
    $affiliate_link = "http://www.youroffer.com";
    
    if($_SERVER['HTTP_REFERER'] == $site1)
    {
    	echo "<body onload=\"javascript:frmClickTracking.submit();\">";
    	echo "<form action=\"" . $affiliate_link . "\" method=\"post\" name=\"frmClickTracking\">";
    	echo "</form>";
    }
    
    ?>
    ^^^ That is my code i paste into my index.php file.

    Code:
    <?php
    
    $site2 = "http://www.yoursite2.com";
    
    echo "<body onload=\"javascript:frmClickTracking.submit();\">";
    echo "<form action=\"" . $site2 . "\" method=\"post\" name=\"frmClickTracking\">";
    echo "</form>";
    
    ?>

    ^^ that is my site1.php file. I send all my junk traffic to that and then it will redirect it to my affiliate link. But, now i need someone to be able to allow it to choose a random one. Thanks!
     
  2. magcshroom

    magcshroom Regular Member

    Joined:
    Nov 7, 2008
    Messages:
    275
    Likes Received:
    117
    NVM, solved it myself :)