How to cloak affiliate links
You want to cloak affiliate links so that when someone is about to click on your link, they don’t notice that you’re sending them somewhere else with an affiliate id attached. See my Why Cloak Affiliate Links article for more information.
Send your affiliates to a new page on your website. Name this page whatever you want. In the html use the following code: (but replace affiliate with your id, and publisher with the id of the product you are promoting.)
<html>
<head>
<title>Loading page…</title>
<meta http-equiv=”refresh” content=”2;URL=http://AFFILIATE.PUBLISHER.hop.clickbank.net”>
<script>
url=’http://AFFILIATE.PUBLISHER.hop.clickbank.net’;
if(document.images) { top.location.replace(url); }
else { top.location.href=url; }
</script>
</head>
<body>Loading
<a href=http://AFFILIATE.PUBLISHER.hop.clickbank.net>page</a>…
</body>
</html>
If you can use php instead of html, then use the following code:
<?php
header(“Location: http://AFFILIATE.PUBLISHER.hop.clickbank.net”);
?>
One thought is to put all of your links to your product links in one folder, such as /recommend, so when someone mouses over the link they see something like
www.yourdomain.com/recommend/product.php
Another thought is to put each product link in a separate folder and have the link index.html, or index.php respectively. Then when someone mouses over the link they see
www.yourdomain.com/product/
