How To Cloak Affiliate Links Using Subfolders

blogging23517

Newbie
Joined
Sep 20, 2008
Messages
19
Reaction score
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.
 
None that I know of... Seems kind of pointless
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
 
None that I know of... Seems kind of pointless.

would you rather click yourdomain.com/folder or affiliatenetworkdomain.com/affil.asp?23423432424&page=3232422342424223423423432.html&cookie=somethingelse ?
 
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:
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.

can you please guide me hot to setup as you showed here?
 
can you please guide me hot to setup as you showed here?

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
 
Last edited:
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..
 
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.
 
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?
 
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.

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:
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

<iframe src="YOUR AFFLIATE LINK GOES HERE" width="100%" height="100%" border='0' frameborder='0' scrolling='no'></iframe>

and there you have it...your subdomain that is actually the sales 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..

Yep, just add a new link for each value of S. (Should be pretty intuitive looking at the code.)


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?

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.)
 
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

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.
 
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.)

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.
 
Back
Top