affiliate links cloaking

Discussion in 'Affiliate Programs' started by nestar, Sep 7, 2007.

  1. #1
    What is the best mehod? I have tried some redirection services but when I test them they often fail giving a page not found error. This can be very costly.:(
     
    nestar, Sep 7, 2007 IP
  2. Bearded

    Bearded Peon

    Messages:
    101
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just create a php file with your links as a redirect and link to that instead.
     
    Bearded, Sep 7, 2007 IP
  3. nestar

    nestar Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That sounds like a great solution. Trouble is I don't know the first thing about php. I have been told that it is possible to make html pages behave like php. I don't know how true this is or how that would be done. Bearded would you mind explaining a little more?
     
    nestar, Sep 7, 2007 IP
  4. KGL

    KGL Peon

    Messages:
    1,155
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Or you could use .html header redirects;

    Say you are running a Vonage offer;

    You would create a .html file with whatever name you want to use;

    ex: vonage.html

    Then open the file in your favorite editor (notepad, etc) and drop this in there;

    <html><head>
    <title>WHAT EVER YOU WANT TO PUT HERE FOR A TITLE</title>
    <META http-equiv="refresh" content="0; url=http://YOURAFFILIATELINKGOSHERE.COM">
    </head>
    <body>
    </body></html>
    Code (markup):
    Just replace the obvious things in there with your stuff and upload to your site and you'll end up with http://www.YOURSITE.COM/vonage.html

    You can go on and on with this method, folders, etc.

    If you found this helpful show me some green love.
     
    KGL, Sep 7, 2007 IP
  5. nestar

    nestar Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I may try that. Thanks KGL. A whole bunch of green love coming your way:)
     
    nestar, Sep 7, 2007 IP
  6. nextgen66

    nextgen66 Well-Known Member

    Messages:
    598
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Meta redirects aren't that great. A lot of people have their browsers security settings prohibiting meta redirects. Its best to put a redirect in your .htaccess file on your host.

    Most host will let you do that through your control panel under 'redirects'.
    You set a fake file like cars.html to redirect to your affilate link. If your domain
    is mycars.com, then in your web page you just put mycars.com/cars.html instead of your affiliate link.
     
    nextgen66, Sep 8, 2007 IP
  7. BKCash

    BKCash Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    create a file called ".htaccess" (no extension or rather no name just the extension) and put this in it:

    RewriteEngine On
    RewriteRule ^link/([/_0-9a-zA-Z-]+)$ link.php?id=$1
    Code (markup):
    now create a file called "link.php" with this in it:

    <?php
    
    $path = array(
    
    'link1' => 'http://www.link1.com/',
    'link2' => 'http://www.link2.com/',
    etc...
    
    );
    
    if (array_key_exists($_GET['id'], $path))
    header('Location: ' . $path[$_GET['id']]);
    
    ?>
    Code (markup):
    put both files in your main directory

    now when you put a link to yoursite.com/link/link1 it will redirect to link1.com


    edit: btw, you can change link to anything else by changing "RewriteRule ^link/([/_0-9a-zA-Z-]+)$ link.php?id=$1" to "RewriteRule ^goto/([/_0-9a-zA-Z-]+)$ goto.php?id=$1" and naming the php file "goto.php". now the link yoursite.com/goto/link1 would redirect to link1.com.
     
    BKCash, Sep 8, 2007 IP
  8. KGL

    KGL Peon

    Messages:
    1,155
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #8
    cPanel redirects don't always work, homie. With some networks you'll get an error message.
     
    KGL, Sep 8, 2007 IP
  9. User_Online

    User_Online Active Member

    Messages:
    516
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #9
    Can't you also use tinyurl or a url masking service? I was thinking about doing that too.
     
    User_Online, Sep 9, 2007 IP
  10. denovo

    denovo Peon

    Messages:
    260
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    denovo, Sep 9, 2007 IP
  11. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #11
    You can also just add a simple line of code to your htaccess

    Lets say you have an affiliate url like htp://www.zzxcby.com&sid=3211

    But you want to have a link pointed to yoursite/widgets/

    Just add this to your htaccess:
    Redirect /widgets/ htp://www.zzxcby.com&sid=3211

    Note I left a "t" out of the url to keep it from being clickable.
     
    kentuckyslone, Sep 9, 2007 IP
  12. KGL

    KGL Peon

    Messages:
    1,155
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Not the best option by a long shot, with some networks you will get an error using Tinyurl.
     
    KGL, Sep 9, 2007 IP
  13. paradigmad

    paradigmad Peon

    Messages:
    220
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I would try Manage Affiliate Links. Its a new link management software program for affiliates that allows them to redirect dead, expired, or broken links to a backup link they choose. This allows you to avoid "404 Page Not Found" and "Sorry, This Offer Has Expired" pages and redirect the visitor to a similar offer. Now you can stop commission loss and take control of your affiliate links. Also includes; deep linking, stealth links, link statistics, and more.

    Visit Manage Affiliate Links

    Watch the video to get a better understanding of how it works. This should really help you with the "page not found error" problem.
     
    paradigmad, Jun 2, 2009 IP