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

Masking affiliiate links in the browser URL?

Discussion in 'Black Hat SEO' started by PandaDomo, Oct 7, 2012.

  1. PandaDomo

    PandaDomo Senior Member

    Joined:
    Apr 30, 2012
    Messages:
    1,094
    Likes Received:
    446
  2. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    I think what you are after is pretty straightforward...

    First you can create a php file called info.php (or whatever you may want) with the following code:

    Code:
    <?php header("Location: HTTP://WWW.YOURAFFILIATELINK.COM"); ?>
    This piece of code changes the HTTP header's location to you're affiliate link (replace the link in caps with your own), and will take a visitor to your affiliate link.

    Second step would be to create the folder "buysnapple" in the root of your directory, as you have here:

    Code:
    [URL="http://ilovesnapple.com/buysnapple?"]http://ilovesnapple.com/buysnapple[/URL]/
    In this folder, you create an index.html or index.php file, which contains your usual doctypes etc, and put an iframe in that file. Here is an example of what I am currently using for one of my campaigns:

    Code:
    [FONT=arial]<iframe id="tree" name="tree" src="http://ilovesnapple.com/[B][U]info.php[/U][/B]" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"/>
    [/FONT]


    Note that I have used an example based in what I would put in the "index.html" or "index.php" file mentioned earlier.

    You can optionally provide the following CSS styling for the iframe above with this:

    Code:
    <style type="text/css">
    
    html{overflow:auto;}
    
    html,body,div,iframe{margin:0px;padding:0px;height:100%;border:none;}
    
    iframe{display:block;width:100%;border:none;overflow-y:auto;overflow-x:hidden;}
    
    </style> 


    It would be better to put this css in an external stylesheet, but the css will behave just the same if you embed it in the header section of your page (assuming you don't already have a css sheet, in which case this styling may over-ride what you have in the external sheet).

    If this doesn't work, let me know, otherwise I hope this helps you out :).
     
    • Thanks Thanks x 4
  3. ofuture

    ofuture Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 25, 2011
    Messages:
    2,743
    Likes Received:
    279
    Gender:
    Male
    Occupation:
    Fulfill clients demand!
    Location:
    Clients Heart!
    Home Page:
  4. PandaDomo

    PandaDomo Senior Member

    Joined:
    Apr 30, 2012
    Messages:
    1,094
    Likes Received:
    446
    Thanks, I don't really know how to do this but I'll give it a try :p
     
  5. DarkMeta

    DarkMeta BANNED BANNED

    Joined:
    Sep 27, 2012
    Messages:
    458
    Likes Received:
    80
    for what we use them? i mean why we hide our affiliate link?
     
  6. binaryking

    binaryking Regular Member

    Joined:
    Aug 31, 2012
    Messages:
    368
    Likes Received:
    114
    Because we don't want reader to know that we are affiliate.
     
  7. ja1myn

    ja1myn Senior Member

    Joined:
    Feb 3, 2012
    Messages:
    811
    Likes Received:
    300
    Just use Pretty Link. It's a WP plugin.
     
  8. PandaDomo

    PandaDomo Senior Member

    Joined:
    Apr 30, 2012
    Messages:
    1,094
    Likes Received:
    446
    I've used Pretty Link but it doesn't really work for me for some reason. I have an add on the right hand side of my website but whenever it's clicked on it still re-directs to an affiliate link.
     
  9. ja1myn

    ja1myn Senior Member

    Joined:
    Feb 3, 2012
    Messages:
    811
    Likes Received:
    300
    Isn't that the point? Or are you not asking how to cloak a URL?
     
  10. Floating Rooster

    Floating Rooster Newbie

    Joined:
    Jan 11, 2012
    Messages:
    14
    Likes Received:
    0
    How would you go about cloaking/hiding the landing page of a redirected viewer?
     
  11. PandaDomo

    PandaDomo Senior Member

    Joined:
    Apr 30, 2012
    Messages:
    1,094
    Likes Received:
    446
    That's what I was wondering lol.
     
  12. ja1myn

    ja1myn Senior Member

    Joined:
    Feb 3, 2012
    Messages:
    811
    Likes Received:
    300
    Not sure. Some of the newer affiliate programs actually have it all done for you already.
     
  13. englandrm

    englandrm Senior Member

    Joined:
    Nov 11, 2010
    Messages:
    942
    Likes Received:
    431
    Location:
    Canada
    Use a redirect. 301 would work. If you're using WP, get a plugin and its super easy. If not, consider switching. If definitely not, use Google and look it up.
     
  14. ja1myn

    ja1myn Senior Member

    Joined:
    Feb 3, 2012
    Messages:
    811
    Likes Received:
    300
    You're gonna 301 redirect the affiliate link itself?
     
  15. themidiman

    themidiman Power Member

    Joined:
    Feb 25, 2011
    Messages:
    701
    Likes Received:
    1,536
    Location:
    root@pts/0
    Yeah, I think you all are completely missing what the OP is asking. He's not asking how to redirect or mask an aff link. He wants to change the url that the user sees when they arrive at the affiliate product landing page. Instead of showing the actual url of the page that the user arrives at, he wants to still show his url, as if the user never left his site.

    That being said, I have no idea how to do it, and don't even know if it's possible.
     
  16. PandaDomo

    PandaDomo Senior Member

    Joined:
    Apr 30, 2012
    Messages:
    1,094
    Likes Received:
    446
    This is exactly what I was asking.

    As for everyone else, I already purchased a domain and did a 301 re-direct to my affiliate link with it.
     
  17. dannyduberstein

    dannyduberstein Junior Member

    Joined:
    Nov 1, 2011
    Messages:
    189
    Likes Received:
    105
    Honestly i don't think there is anyway to do this other than through iframe, and honestly iframes are a thing of the past for the most part because now a days landing pages have iframe breakers.
     
  18. Floating Rooster

    Floating Rooster Newbie

    Joined:
    Jan 11, 2012
    Messages:
    14
    Likes Received:
    0
    This is how pretty links pro and other services like it are making money, obviously it can be done.
     
  19. dannyduberstein

    dannyduberstein Junior Member

    Joined:
    Nov 1, 2011
    Messages:
    189
    Likes Received:
    105
    as far as i know pretty link pro just blanks and redirects. that's not what he's asking for.
     
  20. -Jericho-

    -Jericho- Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Jan 10, 2010
    Messages:
    2,849
    Likes Received:
    1,704
    Location:
    Stalking My Ex-Wife
    If I'm understanding correctly you just want to iframe the whole page.

    Easiest way to do that is create an html page. You can do this in notepad or for me I prefer notepad++.

    Use the following code below and replace the title and clickbank link. Put it in notepad and save it as an html file.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html lang="en">
     <head>
      <title>iframe example</title>
      <style type="text/css">
       html, body, div, iframe { margin:0; padding:0; height:100%; }
       iframe { display:block; width:100%; border:none; }
      </style>
     </head>
     <body>
      <div>
        <iframe src="http://clickbanklinke.net/"></iframe>
      </div>
     </body>
    </html>

    Then the link will be http://domain.com/whatever.html

    whatever.hml is the filename.

    That should do what I think you're trying to do.