Any easy script to mask affiliate links?

Discussion in 'Link Development' started by DomainMagnate, Jun 24, 2006.

  1. ianternet

    ianternet Well-Known Member

    Messages:
    1,084
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    138
    #21
    there are so many I think there is a jump script that is good - what others posted on here are good as well! - I simply created a sql one
     
    ianternet, Oct 5, 2007 IP
  2. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #22
    Just use a Php redirect.

    <?php
    header( 'Location: http://www.yoursite.com/referal=?93939' ) ;
    ?>
    PHP:

    call it whatever.. http://www.yoursite.com/redirect.php
    har har
     
    Dollar, Oct 5, 2007 IP
  3. waterfall

    waterfall Member

    Messages:
    62
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    43
    #23
    waterfall, Oct 5, 2007 IP
  4. blade007

    blade007 Peon

    Messages:
    346
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #24
    this works quite well. I use it on one of my affiliate sites. There aren't many products so a few php files to redirect to the correct link are no problem.
     
    blade007, Oct 5, 2007 IP
  5. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #25
    Yes I learn this from JohnChow.com :)
    Lots to learn from him for beginners.

    Anyone check out his make money online book PDF. learn lots.
     
    Dollar, Oct 5, 2007 IP
  6. jeremy217

    jeremy217 Peon

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #26
    You can also use online services like tinyurl.com and shortio.com
     
    jeremy217, Oct 5, 2007 IP
  7. axlarry

    axlarry Notable Member

    Messages:
    3,961
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    240
    #27
    axlarry, Oct 6, 2007 IP
  8. genkied

    genkied Active Member

    Messages:
    2,025
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    90
    #28
    can you share it to me?

    thanks,

    -ed
     
    genkied, Oct 9, 2007 IP
  9. axlarry

    axlarry Notable Member

    Messages:
    3,961
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    240
    #29
    axlarry, Oct 9, 2007 IP
  10. boil3r

    boil3r Peon

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #30
    Very timely for me. Thanks for the tips! :)
     
    boil3r, Oct 10, 2007 IP
  11. wilk06

    wilk06 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #31
    I have tried this method exactly as is said in the post but when i visit the link it just returns me to the folders index everytime.

    Any ideas why?
    Cheers,

    Wilk06
     
    wilk06, Jan 3, 2008 IP
  12. DXL

    DXL Peon

    Messages:
    380
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #32
    Wilk06,
    It won't work if you put it all in one line.
     
    DXL, Jan 4, 2008 IP
  13. SalsaMan

    SalsaMan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #33
    did not understand one bit of that
     
    SalsaMan, Feb 22, 2008 IP
  14. MKInfo

    MKInfo DP Guard Dog

    Messages:
    1,481
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    140
    #34
    I was looking to do this myself and just had a thought after reading this thread.
    Would it work to just install one of the free tiny url type scripts in a directory on your site?
    I have seen them where you can actually choose your keyword.
    So you could actually have a link that looks like yoursite.com/offers/sale.
    offers being the dir the script is installed in and sale being the name of the link.
     
    MKInfo, Mar 18, 2008 IP
  15. chaitu2006

    chaitu2006 Active Member

    Messages:
    159
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #35
    chaitu2006, Oct 11, 2008 IP
  16. jnm007a

    jnm007a Peon

    Messages:
    441
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #36
    The php code below works the best. Save it as link.php or whatever name you'd like.

    <?
    $o = $_GET['o'];
    if ($o == "a1") {$link = "http://www.domain.com";}
    if ($o == "a2") {$link = "http://www.domain2.com";}
    if ($o == "a3") {$link = "http://www.domain3.com";}
    if ($o == "a4") {$link = "http://www.domain4.com";}

    header("Location: $link");
    exit();
    ?>


    To create a link, you would use the following example.
    <a href="link.php?o=a1">domain link</a>
     
    jnm007a, Oct 14, 2009 IP
  17. coolbuha

    coolbuha Well-Known Member

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #37
    this thread is really useful..i had learned a lot here..thanks for all for the info here..
     
    coolbuha, Sep 14, 2011 IP