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

Make a fake referer

Discussion in 'Cloaking and Content Generators' started by juan186, Feb 6, 2016.

  1. juan186

    juan186 Newbie

    Joined:
    Sep 16, 2015
    Messages:
    26
    Likes Received:
    1
    Location:
    Spain
    Hi guys, I want to make a fake referer. I have 2 blogs myfirstblog.com and mysecondblog.com I want to bring traffic with facebook to myfirstblog.com, and that the referer would be mysecondblog.com

    Is it possible? I read a tutorial in this forum, but the script in php doesn't work.

    Thanks
     
  2. Swaggatron

    Swaggatron Jr. VIP Jr. VIP

    Joined:
    Aug 13, 2015
    Messages:
    227
    Likes Received:
    40
    Gender:
    Male
    Occupation:
    Freelance Writer / Blogger
    Location:
    Travelling
    Home Page:
  3. jr2007

    jr2007 Newbie

    Joined:
    Feb 14, 2012
    Messages:
    21
    Likes Received:
    0
    I've looked over the guides listed above the question I have is with them being so old are they even relavant anymore?
     
  4. labshare

    labshare Newbie

    Joined:
    Nov 22, 2015
    Messages:
    22
    Likes Received:
    1
    Hi.

    Why don't you just make a redirection.

    Yo make a page like redirect.php on mysecondblog

    Code:
    <?php
    header("Location: url of first blog");
    exit();
    ?>
    
    And on facebook you put a link : secondblog/redirect.php

    You send traffic and it will be good :D
     
    Last edited: Feb 15, 2016
  5. labshare

    labshare Newbie

    Joined:
    Nov 22, 2015
    Messages:
    22
    Likes Received:
    1
    Edit: mistake, from me
     
  6. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    No that's a 301 redirect and most browser will keep the orginal referer (and it's normal since it's more logical), if you want to change it this should work:

    WARNING: This code contain a fail safe, if the referer can't be changed the traffic will not be redirected! This is for education only use it at your own risk!
    PHP:
    <?php
    if(isset($_GET['redir']) && !empty($_GET['redir'])) {
        
    $redir_url substr($_SERVER["REQUEST_URI"], strpos($_SERVER["REQUEST_URI"], "=") + 1);
        
    $refresh_url 'http://' $_SERVER['HTTP_HOST'] . strtok($_SERVER["REQUEST_URI"],'?');
        
    setcookie("redir"$redir_urltime()+5);
        exit(
    header('Location: ' $refresh_url));
    }
    elseif(isset(
    $_COOKIE['redir']) && !empty($_COOKIE['redir'])) {
        
    $referer $_SERVER['HTTP_REFERER'];
        
    $domain $_SERVER['HTTP_HOST'];
        if(
    strpos($referer$domain) !== false) {
            
    $redir_url urldecode($_COOKIE['redir']);
            
    setcookie("redir"""time()-5);
            exit(
    header('Location: ' $redir_url));
        } else {
            echo 
    '<form action="" method="get"></form>';
            echo 
    '<script>document.forms[0].submit();</script>';
        }
    }
    ?> 
    Send traffic to 'http://mydomain.com?redir=http://redirdomain.com' (where 'http://redirdomain.com' is the url where you want to send traffic to).
     
    • Thanks Thanks x 1
    Last edited: Feb 16, 2016
  7. youBobo

    youBobo Newbie

    Joined:
    Jan 26, 2016
    Messages:
    39
    Likes Received:
    19
    Occupation:
    Freelancer
    Location:
    Earth
    I have a working redirection written in PHP that works on both PHP coded sites, including Wordpress.
    The problem is, I'm still a newbie and not allowed to post links. Code has links so it won't get posted anyway.

    Later when I'm allowed to post links, I'll share it here in BHW.