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

Fake the referer

Discussion in 'Black Hat SEO' started by Having, May 22, 2016.

  1. Having

    Having Newbie

    Joined:
    Aug 18, 2015
    Messages:
    5
    Likes Received:
    0
    I have two websites let's call them website A and website B. I want to make it so that every hyperlink you click on website A goes through website B before going to the link, without changing the URL of that link.

    For example
    "google link (google.com) on website A" -> "website B" -> "google.com"

    Is this possible?
     
  2. Having

    Having Newbie

    Joined:
    Aug 18, 2015
    Messages:
    5
    Likes Received:
    0
    Anyone please?
     
  3. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    You could use jQuery's click() event handler and bind it to your Google href links on Website A so that when someone click on any of them they are directed to website B first. A simple script on Website B can then parse the inbound traffic and redirect to Google if required.

    Code:
    $(document).ready(function(){
        $('a[href*="google"]').click(function(){
            // redirect to Website B here
        });
    });