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

How To Cloak Affiliate Links Using Subfolders

Discussion in 'Cloaking and Content Generators' started by blogging23517, Nov 8, 2008.

Tags:
  1. blogging23517

    blogging23517 Newbie

    Joined:
    Sep 20, 2008
    Messages:
    19
    Likes Received:
    0
    I lost a bookmark that showed me how to cloak a affiliate link
    that looked like he copied the whole web page & added it
    to a subfolder.

    How do I do this, it really looked like he copied
    the whole sales page & just added it to his site.

    This way looks more professional & also looks
    like we own the affiliate product.
     
  2. affiliate_niche_monster

    affiliate_niche_monster Newbie

    Joined:
    Oct 18, 2008
    Messages:
    4
    Likes Received:
    2
    Occupation:
    Web Developer, SnowMaker
    Location:
    Vermont, USA
    Try this: affiliatenichemonster.com/affiliate-link-cloaker
     
    • Thanks Thanks x 1
  3. affigold

    affigold BANNED BANNED

    Joined:
    Nov 14, 2008
    Messages:
    103
    Likes Received:
    13
    Great thanks did u make it yourself?
     
    • Thanks Thanks x 1
  4. blackpackets

    blackpackets Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 27, 2008
    Messages:
    309
    Likes Received:
    60
    Location:
    Skype
    Home Page:
    What is the benefits of doing this?
     
  5. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    None that I know of... Seems kind of pointless.
     
  6. *zap*

    *zap* Regular Member

    Joined:
    Apr 7, 2008
    Messages:
    349
    Likes Received:
    98
    Occupation:
    none
    Location:
    Uk
    Look and learn
    If and its a big if you could send 1000 sales a day to your Affiliate
    Do you not think that maybe they would like to know where you are getting them from so they could put up a site?

    Think before you post
     
  7. dirtbag

    dirtbag Senior Member

    Joined:
    Jul 24, 2008
    Messages:
    990
    Likes Received:
    525
    would you rather click yourdomain.com/folder or affiliatenetworkdomain.com/affil.asp?23423432424&page=3232422342424223423423432.html&cookie=somethingelse ?
     
  8. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    But you could just use a simple short GET string argument for the same effect without having to create 1000 folders on your site.

    http://mysite.com/redirect.php?S=1
    http://mysite.com/redirect.php?S=2
    ...
    http://mysite.com/redirect.php?S=1000

    All your code can be in one file as opposed to having 1000 folders with index.php files. True, the subdirectory WORKS, but seems like it would be VERY tedious and inefficient to control, even with scripts.


    Edit:
    OR even have the working file the index.php file--so you'd have:

    http://mysite.com/?S=1
    http://mysite.com/?S=2
    ...
    http://mysite.com/?S=1000

    Relatively clean and simple--nothing very offputting about clicking those links.
     
    Last edited: Nov 19, 2008
  9. blackpackets

    blackpackets Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 27, 2008
    Messages:
    309
    Likes Received:
    60
    Location:
    Skype
    Home Page:
    can you please guide me hot to setup as you showed here?
     
  10. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    Here's some sample code I threw together:
    Code:
    <?php
    //Default window locations
    $bounce_loc='http://www.google.com/';
    $bounce_title='Google';
    
    $ID = $_GET['S']; 
    
    if ( $ID=="" )
    {}
    else if ( $ID=="1" )
    {
      $bounce_loc='http://www.amazon.com';
      $bounce_title='Amazon';
    }
    else if ( $ID=="2" )
    {
      $bounce_loc='http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/33726-how-cloak-affiliate-links-using-subfolders.html';
      $bounce_title='How To Clock Affiliate Links Using Subfolders - Black Hat Forum';
    }
    else if ($ID=="3")
    {
      $bounce_loc='http://en.wikipedia.org/wiki/Taco';
      $bounce_title='Taco - Wikipedia, the free encyclopedia';
    }
    else
    {
    //Will just use default locations defined at the top
    }
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html>
    <head>
    <?php echo "<title>$bounce_title</title>" ?>
    </head>
    <frameset rows="0,*" framespacing="0" border="0" frameborder="0">
    <frame name="header" scrolling="no" target="main" marginwidth="0" marginheight="0">
    <?php echo "<frame name="main" scrolling="auto" src="$bounce_loc">" ?>
    <noframes>
    <body>
    <?php echo "<meta http-equiv=refresh content='1; url=$bounce_loc'>" ?>
    <p>This page uses frames, but your browser doesn't support them.</p>
    </body>
    </noframes>
    </noframes>
    </frameset>
    </html>
    </html>
    
    Put it in a .php file where ever you want. Name it index.php if you want it to simply be that directory + the argument.

    I crafted the actual page content from that link earlier in the thread (affiliatenichemonster.com/affiliate-link-cloaker ) and in all honesty I do not know why it uses two </html>'s and all that. I just left it there and assumed it serves some purpose.

    Here are some temporary working sample links (don't worry--they arn't any affiliate sites.)
    http://drkenneth.mobi/testing/windowed.php?S=1
    http://drkenneth.mobi/testing/windowed.php?S=2 (hahaha)
    http://drkenneth.mobi/testing/windowed.php?S=3

    Enjoy
    +rep/thanks is apprecaited :D
     
    • Thanks Thanks x 4
    Last edited: Nov 20, 2008
  11. blackpackets

    blackpackets Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 27, 2008
    Messages:
    309
    Likes Received:
    60
    Location:
    Skype
    Home Page:
    drkenneth,

    I m just wodnering..by doing this method, we can use 1 domain name to promote a lot of aff products?

    mydomain.com/index.php?S=1 ( for first affiliate) and so on..
     
  12. blackpackets

    blackpackets Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 27, 2008
    Messages:
    309
    Likes Received:
    60
    Location:
    Skype
    Home Page:
    i tried you code.this error came up;
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /index.php on line 37

    how to fix this thing? I have no idea with programming.
     
  13. bvb

    bvb Regular Member

    Joined:
    Aug 23, 2007
    Messages:
    244
    Likes Received:
    10
    Ive been looking for this. So how long does it stay as yoursite.com/affiliate.. once a user clicks on a link on the affiliate page, the site changes to affiliate.. right?
     
  14. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    Eww, sorry, when I posted it the forum cut off some of my coding.

    Edit:
    <?php echo "<frame name="main" scrolling="auto" src="$bounce_loc">" ?>

    So that there are BACKSLASHES (not / but the one leaning the other way) in front of all the quotes except the first & last.
    For some reason you can't post backslashes??? Wtf?

    For some reason the forum formatting removed them when I put it in the code brackets. (This tells the echo function they're literal quotes.)
     
    Last edited: Nov 20, 2008
  15. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    wow.. why are you guys making ti soo complicated... hahah

    just make a subfolder.

    and put an INDEX.php file in there

    the contents in that index should include

    and there you have it...your subdomain that is actually the sales page
     
  16. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    Yep, just add a new link for each value of S. (Should be pretty intuitive looking at the code.)


    The page they see is ALWAYS the affiliate's actual page, it's just shown through your page in a big frame. (So the title URL wont change.)
     
  17. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    This more "complicated" setup would be useful for different situations.
    If you had 100 links you needed to update often it's much easier to have 1 file on one page with a numerical argument than 100 folders with 100 files. Also, this would end up being simpler in the long run if you have to change to a redirect, different method of windowing, etc. This is true even for like 5 or 6 redirects. One file as opposed to 5 directories and 5 files.
     
  18. blackpackets

    blackpackets Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 27, 2008
    Messages:
    309
    Likes Received:
    60
    Location:
    Skype
    Home Page:
    I still dont get it.Can you pls upload text file here with the correct code.

    I m sorry for bothering you but I really noob with programming.

    Thanks again.
     
  19. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    http://drkenneth.mobi/testing/windowed.txt

    There you go--lemme know how that works for you :)
     
    • Thanks Thanks x 3
  20. blackpackets

    blackpackets Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 27, 2008
    Messages:
    309
    Likes Received:
    60
    Location:
    Skype
    Home Page:
    it is up and running now.

    cheers mate.