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

Spoof HTTP referer

Discussion in 'Hire a Freelancer' started by auuuu, Oct 23, 2011.

  1. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    I need someone that can setup the referer of my landing page.

    The traffic come from A to B, instead i want that my CPA Network see that the traffic come from C (another page) to B.

    Anyone?
     
    • Thanks Thanks x 1
  2. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    I've received some offers but they ask me for a lot of money.

    Others?
     
  3. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    No one guys? C'mon i need it ASAP!
     
  4. trustedfire9

    trustedfire9 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 15, 2010
    Messages:
    2,108
    Likes Received:
    1,785
    double meta refresh is what you need , here's threads about that g00gle it too
     
  5. zelma143

    zelma143 Power Member

    Joined:
    Jun 25, 2010
    Messages:
    571
    Likes Received:
    37
    Occupation:
    PHP programmer,Bot maker,iMacro script maker
    double meta refresh would be enough
     
  6. Humble

    Humble Registered Member

    Joined:
    Jul 17, 2010
    Messages:
    81
    Likes Received:
    51
    Occupation:
    Human
    Location:
    North American
    Double refresh clears your referal. Spoofing means to fake it.

    He is asking to spoof his traffic, not clear out the referal data.

    PM me if you still need this job done.
     
  7. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    Yeah, i need to fake it :)
     
  8. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    It's easy to achieve this kind of 3-site spoofing. Just refer to this thread:

    http://www.blackhatworld.com/blackh...e-referer-any-offer-fake-referrer-script.html

    It's all there, with the code that just needs to be used on your "middle-man" website and the "source" that needs to be faked. With the added benefit that if you use WP (or any website with a common include) on the latter you can even spoof pages that do not exist on that domain. Worst case scenario the CPA company will see the "middle-man" domain, that could easily be used for tracking purposes too.

    Just to sum it up.

    Use this as index.php for your "middle-man" website (the website you'll spam, ehm.. promote).

    Code:
    <?php
    // Extract URI minus http://handlerdomain.com/
    $full_url = urldecode($_SERVER['REQUEST_URI']);
    // Extract urls we need
    $l = strlen($full_url);
    $p_referer = strpos ($full_url, 'referer=');
    $p_dest_2 = $p_referer - 1;
    $p_referer = strpos ($full_url, '=',$p_referer) + 1;
    $url_referer = substr ($full_url , $p_referer);
    $p_dest_1 = strpos ($full_url, '=') + 1;
    $l = $p_dest_2 - $p_dest_1;
    $url_dest = substr ($full_url , $p_dest_1, $l);
    
    // Create self-posting form.
    if ($url_referer != '') {
        echo '<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body>
        <form action="'.urldecode($url_referer).'" method="post" id="myform">
        <input type="hidden" name="ref_spoof" value="'.urldecode($url_dest).'">
        </form><script language="JavaScript"> document.getElementById(\'myform\').submit();</script></body></html>';
    } else {
        echo 'You must provide a referer';
    }
    ?>
    
    Put this in the header of the WP site that needs to show up as the source:

    Code:
    <?php
    if ($_POST['ref_spoof'] != NULL) {
        $offer = urldecode($_POST['ref_spoof']);
        $p1 = strpos ($offer, '?') + 1;
        $url_par = substr ($offer , $p1);
        $paryval = split ('&', $url_par);
        $p = array();
        foreach ($paryval as $value) {
            $p[] = split ('=',$value);
        }
        echo'<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body><form action="'.$offer.'" method="get" id="myform">';
        foreach ($p as $value) {
            echo '<input type="hidden" name="'.$value[0].'" value="'.$value[1].'">';
        }
        echo '</form><script language="JavaScript"> document.getElementById(\'myform\').submit();</script></body></html>';
    }
    ?>
    
    Once you have uploaded the index.php on your "middle-man" website and edited the WP blog that needs to show up as the fake source, just create a link like this:

    http://your-middleman-site.com/?url...-wpblog.com/page-that-needs-to-show-up-on-cpa

    Of course you'll change the "url" query string argument to reflect the cpa offer you're promoting and the "referer" query string argument to assign the page you want the company to see as the fake source.

    Needless to say your WP blog will look totally white hat, so problem solved and Merry Xmas! :D
     
    • Thanks Thanks x 1
  9. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    Double post ffs...
     
    Last edited: Dec 25, 2011