Will this fake the referrer and not leave evidence???

Discussion in 'Making Money' started by shanez20, Dec 23, 2008.

  1. shanez20

    shanez20 Newbie Premium Member

    Joined:
    Dec 8, 2008
    Messages:
    31
    Likes Received:
    124
    Hi,

    I have been trying to think of a way to hide the referral but also make it look like the traffic came from a valid page and here is my idea, I am only a newbie and not sure if there is a better way of doing it. For some reason I can never get the referrer to actually show when using
    Code:
    header("Location:")
    so i would send traffic that I want to fake to hXXp://www.domain.c0m/index.php?refer=yes


    Code:
    <?php
    
    if ( $_GET['refer'] == 'yes' )
    {
    print'
    <form name="form" action="index.php" method="POST">
    <input type="hidden" name="url" value="http://www.urltosendto.com">
    </form>
    <script language=javascript>
    <!--
    document.all.form.submit();
    //-->
    </script>
    ';
    }
    
    $url = $_POST['url'];
    
    if ( $_POST['url'] )
    {
    print "<script>";
    print "self.location='" . $url . "';";
    print "</script>";
    }
    else
    {
    if ( !$_GET['refer'] )
    {
    print"Fake page content here";
    }
    }
    ?>
    
     
    Last edited: Dec 23, 2008