WEB How do you cloak your links?

Discussion in 'OT Technology' started by subwoofer, Mar 13, 2009.

  1. subwoofer

    subwoofer OT Supporter

    Joined:
    Aug 28, 2003
    Messages:
    10,966
    Likes Received:
    0
    Location:
    california
    New to affiliate marketing. What I've been doing is setting up a page on my server that automatically redirects to the product. Is this method safe? What are your opinions on the best way to cloak a link and what services do you use?
     
  2. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    You can use a 301 redirect via htaccess or PHP header redirect
     
  3. Ebtek

    Ebtek Afraid of 138

    Joined:
    Mar 19, 2000
    Messages:
    152,807
    Likes Received:
    1,026
    what about a 3rd party service that us direct adwords -> aff friendly?

    hurry, im on that page right now
     
  4. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    I use this piece of code inside a php file renamed to whatever I choose depending on what I'm doing.

    Code:
    <?PHP
    // This script is to be used with the Affiliate Jump Tutorial at www.stevedawson.com/articles.php
    /************************************************************************/
    /* PHP Affiliate Jump Script                                             */
    /* ===========================                                          */
    /*                                                                      */
    /*   Written by Steve Dawson - http://www.stevedawson.com               */
    /*   Freelance Web Developer - PHP, MySQL, HTML programming             */
    /*                                                                      */
    /* This program is free software. You can redistribute it and/or modify */
    /* but please leave this header intact, thanks                          */
    /************************************************************************/
    /*
    Save this page as jump.php and when linking to this script use the following:
        <a href="jump.php?m=XXXXXX">XXXXXX</a> 
    Where XXXXXX is your merchant. 
    */
    $m = $_GET['m'];
    if ($m == "") {$link = "Your site url here";} // Default Blank
    if ($m == "XXXX") {$link = "affiliate link here";}
    if ($m == "XXXX") {$link = "affiliate link here";}
    
    /*
    To add more jump links, just copy and paste one of
    the lines above and modify the $m and $link values
    */
    
    header("Location: $link"); // Jump to the hidden affiliate URL above
    exit();
    ?>
    
    
    
    
    I'm sure there are better ways but I've been using this for a while now:dunno:
     
  5. intrktevo

    intrktevo New Member

    Joined:
    Oct 18, 2004
    Messages:
    5,781
    Likes Received:
    0
    Location:
    UCF
    using a switch instead of a bunch of ifs would look nicer

    Code:
    $m = $_GET['m'];
    switch($m) {
       case "XXX":
          $link = "link here";
       break;
       case "YYY":
          $link = "link here";
       break;
       default:
          $link = "link here";
    }
    
     
  6. Yahdude

    Yahdude New Member

    Joined:
    Jun 21, 2006
    Messages:
    1,211
    Likes Received:
    0
    Location:
    PC, UT
    I use header redirects.
     
  7. MaK10

    MaK10 OT Supporter

    Joined:
    Nov 13, 2004
    Messages:
    3,843
    Likes Received:
    0
    Location:
    Chicago Suburbs
    i think one of my sites is using meta redirects maybe it's header redirects... I have another one that also hits the referring URL from the affiliate which is a little sketchy, but nobody has said anything yet...
     
  8. JesterFX

    JesterFX New Member

    Joined:
    Oct 10, 2004
    Messages:
    4,557
    Likes Received:
    0
    Safe from what specifically? What are the specific people you are trying to cloak from? Just trying to keep users from seeing you are using affiliate links? Or trying to hide where your traffic is coming from so you AMs don't know you are using questionable traffic? Depends on what you are trying to do.

    In general I usually use php header redirects or just something like prosper202.
     
  9. subwoofer

    subwoofer OT Supporter

    Joined:
    Aug 28, 2003
    Messages:
    10,966
    Likes Received:
    0
    Location:
    california
    Safe as in keeping users away from removing the affiliate link. I guess the header redirect is where its at. :coold:
     
  10. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10

    what difference does this make?
     
  11. Phasm

    Phasm OT Supporter

    Joined:
    Sep 20, 2005
    Messages:
    9,680
    Likes Received:
    0
    Location:
    Michigan
    as long as they click it the cookie will track the hit and give you the commission
     
  12. Falconer

    Falconer OT Supporter

    Joined:
    Jun 23, 2006
    Messages:
    65,506
    Likes Received:
    1
    i use .htaccess redirects for affilliate links. Is that a good/safe way to do it?
     

Share This Page