Fri Mar 18, 2011 9:30 am by mickni
I usually use the link below to cloak affiliate links,it works well for me,you just need to add new line like this
- Code:
$links['http://www.affsite.com'] = 'http://afflink.affnetwork.com/click/i2ptmmXKfZ3ZG6cX5w' ;
after it,save this file as redirect.php,upload this php file to the root of your hosting,when you need to use this,just visit www.yourdomain.com/redirect.php?site=http://www.affsite.com
that's it
- Code:
<?php
$site = $_GET['site'];
$links = array();
$links['http://www.affsite.com'] = 'http://afflink.affnetwork.com/click/i2ptmmXKfZ3ZG6cX5w' ;
# redirection
header('Location: '.$links[$site]);
?>