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

Link Cloakers/Maskers & Redirects that KEEP the referrer

Discussion in 'Cloaking and Content Generators' started by hardsoft, Aug 15, 2008.

  1. hardsoft

    hardsoft Registered Member

    Joined:
    Apr 10, 2008
    Messages:
    53
    Likes Received:
    174
    Hey everyone,

    My request is a bit different from the usual... 'how do i hide my referrer?'

    Are there any link cloakers/maskers that will KEEP my referrer.

    For example... If someone is on my landing page...

    Landing Page---> User clicks on cloaked link -->Merchant landing page

    I want the networks to see my landing page as the referrer, but dont want to use my 'naked' affiliate link.

    This is what i came up with from researching the forums... but i find conflicting opinions so i just want to make sure.
    The following will work:
    tinyurl
    php redirect
    javascript redirect

    anything else?
     
    • Thanks Thanks x 1
  2. vmedia

    vmedia Regular Member

    Joined:
    Feb 6, 2008
    Messages:
    239
    Likes Received:
    28
    gen -
    can i take garbage traffic and clean referer with a double-refresh then somehow redirect it to show a referer of my choice?

    sort of like if the ref was junktraffic.com how could i change it into mysite.com/index.php?
     
  3. omfg

    omfg Newbie

    Joined:
    Aug 11, 2008
    Messages:
    26
    Likes Received:
    10
    Awesome. I know I'm not supposed to spam the forum with 'thank you' posts, but I'm a JS-retard and this is just totally awesome for me.
     
  4. hardsoft

    hardsoft Registered Member

    Joined:
    Apr 10, 2008
    Messages:
    53
    Likes Received:
    174
    thanks gen... i feel confident when advice is coming from you
     
  5. matapples01

    matapples01 Regular Member

    Joined:
    May 15, 2008
    Messages:
    358
    Likes Received:
    208
    Nice work...no js background here either. Gen, I'm also assuming (I know, never assume) that you could put more than 1 form action site reference. i.e. have sendtraffictothispage.html be kind of a traffic catchall and then "distribute" it evenly to several sites equally?
     
  6. matapples01

    matapples01 Regular Member

    Joined:
    May 15, 2008
    Messages:
    358
    Likes Received:
    208
    To check for referrer first, can you just insert the js in the middle of the code, like this? If it's coming from the traffic source, it processes the redirect but if it's not coming from the traffic source, then it just processes the page normally. I'm guessing that you can combine js and php in one command but I just don't know how.

    PHP:
    <?php
    $referer 
    $_SERVER['HTTP_REFERER'];
        if(
    $referer == "mytrafficsource.html")
        {
            <
    body onload="javascript:frmForcedReferrer.submit();">
    <
    form action="http://www.yoursite.com/redirect.php" method="post" name="frmForcedReferrer">
    </
    form>
        } 
    ?>
     
  7. polymorphs

    polymorphs Newbie

    Joined:
    May 1, 2008
    Messages:
    43
    Likes Received:
    32
    It's amazing how a couple of messages in one thread are more helpful than most the ther forums out there in total
     
    • Thanks Thanks x 1
  8. whynot

    whynot Registered Member

    Joined:
    Oct 3, 2007
    Messages:
    77
    Likes Received:
    130
    This looks to be just what I need but I cannot get the code to pass the referrer from my index.php

    This is what I have like suggested in my domains index.php file.

    Code:
    <?php
    
    header('Location: https://MyAffiliateLink/');
    
    ?>
    When I check my affiliate logs of where my traffic is coming from it's blank. Could it be beacause I'm redirecting to a https: domain?

    Also, would I have to advertise my domain as MyDomain.com or MyDomain.com/index.php to get the redirect to work properly. I want to show my referring domain so I can track how my different forms of advertising are doing.

    Any ideas what could be up?
     
  9. spag

    spag Newbie Premium Member

    Joined:
    Sep 16, 2008
    Messages:
    18
    Likes Received:
    1
    It's not that its from https. that redirect code sends either null or the previous page as the referrer.

    Site A
    Site B
    Site C

    I'm looking for code that will send something from site B to site C with site B being the referrer(it all comes initially from site A).

    I've succeeded in doing this a few different ways but there is always some little hiccup. Would love to hear what others have to say.
     
  10. bscan

    bscan Newbie

    Joined:
    Aug 17, 2008
    Messages:
    13
    Likes Received:
    0
    Cool trick. Especially with JavaScript form submit.
    I forgot a bit about that option :D

    Was doing half of the job with php header refresh.
     
  11. nycsavage

    nycsavage Junior Member

    Joined:
    Mar 31, 2008
    Messages:
    181
    Likes Received:
    62
    Gender:
    Male
    Occupation:
    Web Designer
    Location:
    UK
    Home Page:
    Lets make sure im doing this right, people come to yoursite1.com then the script should automatically then push them to yoursite2.com which will then send them to youroffer.com?

    Obviously I changed these site names to what I need
    eg
    site1.com = nycsavage.com
    site2.com = nycsavage_bhw.com
    youroffer.com = nycsavage_gets_paid_for_referral.com

    I cant get this code to work!

    When I go to site 1, I get this message:
    EDIT: I realised I was using php code in html site and this produced the error!

    Sorry everyone for the trouble
     
    Last edited: Oct 1, 2008
  12. nycsavage

    nycsavage Junior Member

    Joined:
    Mar 31, 2008
    Messages:
    181
    Likes Received:
    62
    Gender:
    Male
    Occupation:
    Web Designer
    Location:
    UK
    Home Page:
    Update:

    I got the site1.com to send traffic to site2.com, then I get a new message:

    And this is line 13 of my code:

    Should I change it to

    Or is it something else entirely?
     
  13. spag

    spag Newbie Premium Member

    Joined:
    Sep 16, 2008
    Messages:
    18
    Likes Received:
    1
    try
    if($_SERVER['HTTP_REFERER'] == $site1)

    instead of:

    if($_SERVER['HTTP_REFERER' == $site1)

    let me know if that works for ya.
     
  14. nycsavage

    nycsavage Junior Member

    Joined:
    Mar 31, 2008
    Messages:
    181
    Likes Received:
    62
    Gender:
    Male
    Occupation:
    Web Designer
    Location:
    UK
    Home Page:
    Yes and no

    Thank you

    Site 1 forwards to Site 2 but Site 2 does not forward to Site 3

    Heres is my code for Site 2

     
  15. casper

    casper Newbie

    Joined:
    Sep 26, 2008
    Messages:
    48
    Likes Received:
    35
    i'm having the exact same problem after fixing the missing "]" in the provided code. it stops at site 2, never going to the affiliate link. anyone have this working? thanks!
     
  16. casper

    casper Newbie

    Joined:
    Sep 26, 2008
    Messages:
    48
    Likes Received:
    35
    fixed my own problem from above. i had the $site1 URL in the code referring to the www subdomain, but i was testing without the www in the address bar. i'm pretty sure you are having the same problem nycsavage.
     
  17. lazyeight

    lazyeight Newbie

    Joined:
    Sep 29, 2008
    Messages:
    2
    Likes Received:
    0
    I really like the concept of this, but it's obviously against the TOS for EPN. This could potentially get you banned from EPN. I'd like to know how secure this is to my account. I know ebay sees a referrer that's legit, but what if they find your original link that is redirecting.

    Let's say you posted SiteA to an unauthorized site, and removed it before it left much of a trail. The referrer would be gone (which allowed the redirect), but could ebay do anything to track you down and ban you considering it didn't redirect for them?

    Has anyone been successful with this and feel safe using it?
     
  18. jiajilah

    jiajilah Junior Member

    Joined:
    Jun 6, 2008
    Messages:
    138
    Likes Received:
    122
    Very very cool!
    Finally I got this work as what I need after making some changes.
    This is real cool :D
    Thank you very much.

    Now trying to make it nicely for the pages.

    * Is there a way stop showing the "redirect jumping" at the browser status when the user click the original url?
    It doens't look nice as the url keep redirecting from 1 site to another.
     
  19. jiajilah

    jiajilah Junior Member

    Joined:
    Jun 6, 2008
    Messages:
    138
    Likes Received:
    122
    These are something I use in my code because I'm passing some variable from site1.
    To grab domain of referrer.
    PHP:
    // get host name from URL
    preg_match('@^(?:http://)?([^/]+)@i'$_SERVER['HTTP_REFERER'], $matches);
    $host $matches[1];

    // get last two segments of host name
    preg_match('/[^.]+.[^.]+$/'$host$matches);

    $preg_refer $matches[0];
    Grab the variable
    PHP:
    $site1 "site1.com";
    $getvariable strstr ($_SERVER['HTTP_REFERER'], "?url="); <== url is my variable
    $newvariable 
    substr($getvariable 5);
    [/PHP]

    Security check if referral coming from site1
    PHP:
    if($preg_refer == $site1)
    {
        echo 
    "<body onload="javascript:frmClickTracking.submit();">";
        echo 
    "<form action="" . $youraffiliatelink. "" method="post" name="frmClickTracking">";
        echo 
    "</form>";
    }
    else
    {
        echo 
    "<body onload="javascript:frmClickTracking.submit();">";
        echo 
    "<form action="" . "http://www.promptsomeinvalidlinkmsg.com" . "" method="post" name="frmClickTracking">";
        
    echo "</form>";
    }
    * Is there a way stop showing the "redirect jumping" at the browser status when the user click the original url?
    It doens't look nice as the url keep redirecting from 1 site to another.
     
  20. foxler

    foxler Regular Member

    Joined:
    Mar 7, 2008
    Messages:
    279
    Likes Received:
    159
    You could put all the redirects and checks inside an iframe, so instead of having the url change like 3 times to all the checks in place, have it just say 'page loading' at the bottom of the browser and not changing the actual url. I haven't tested putting form action inside an iframe and checking for the right referer on the second page, but I'm thinking it should function the same as if it wasn't in an iframe.