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

Referrer For A Redirect

Discussion in 'Black Hat SEO' started by razorzero, Feb 1, 2009.

  1. razorzero

    razorzero Newbie

    Joined:
    Oct 31, 2008
    Messages:
    6
    Likes Received:
    0
    Ok, say someone clicks a link which is formatted like this:

    Code:
    www(dot)site(dot)com/go/afflink
    Now, this link is redirected with .htaccess to an affiliate link.

    Would the referrer be
    Code:
    www(dot)site(dot)com
    or what?

    Any help is appreciated.
     
  2. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    You could do a simple test to find out what the referrer is. Create a file called ref.php and add this code to it:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    <p>Referrer:</p>
    <br />
    <?php
    echo $_SERVER['HTTP_REFERER'];
    ?>
    </body>
    </html>
    Make your affiliate link redirect to ref.php (set it up through .htaccess like you planned), and you will see what the referrer is.
     
    • Thanks Thanks x 2
  3. topihitam

    topihitam Newbie

    Joined:
    Dec 29, 2008
    Messages:
    47
    Likes Received:
    35
    or try to click the link and check at your affiliate site. they usually has a tracker and you can see whether your link has referrer or not. at least it works for me.