Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Opinions on hiding affiliate links

[bsa_pro_ad_space id=2]
#731941
Anonymous
Inactive

I would say rather than trying to cloak links, use a redirector script, as mentioned earlier. Tracking is nice, but a basic redirect looks like this

create clicked.php, it will expect to be called: clicked.php?ID=2 (the id being the affiliate link you wish to redirect to.) This has the added benefit of giving you 1 location/file with all your links, when the program sends the email “Change all your links”.

I’ve put in 2 cases and a default, you can put as many “case”s as you want (at least 255, probably 64k)
$ID = intval($_GET[“ID”]);
switch($ID)
{
case 1: // Code for Location or deal A
$url = “http://www.partypoker.com/index20100_np.htm?wm=2000671”;
break;

case 2: // Code for Location/Deal b
$url = “http://www.partypoker.com/index20100_np.htm?wm=2000672”;
break;

default: // In case you screw up, send them somewhere
$url = “http://www.playunited.com/AidDownload.php?casinoID=64&gAID=250&subGid=0&bannerID=856”;
break;
}
header(“Location: $url”) ;
?>