How do I cloak my affiliate link?

If your web host supports php, then the best way to cloak your link is to use a php redirect page. It is fast and does not require your visitors to run scripts on their machines. If your host does not support php, then you should try another host. I use lunarpages to host my sites. Here is all the code that you need:

<?php
header ('Location: http://affid.madeup.hop.clickbank.net');
?>

Here is how you use this code to cloak your affiliate link.

  1. Using a text editor such as notepad, create a new text file.
  2. Copy the code above and paste it into the text file.
  3. Replace http://affid.madeup.hop.clickbank.net with your affiliate link.
  4. Save the text file and rename it to Anything.php, where 'Anything' is the new name that you will send your prospects to. For example, if I were promoting a product called "The Best Thing Since Sliced Bread," then I might name the file The-Best-Thing-Since-Sliced-Bread.php.
  5. Upload the file to your domain.
  6. Now test the link. In your browser, enter the url for the new file. For example, my domain is m991.com, and my redirect page is OnDemandProfits.php, so I send prospects to www.m991.com/OnDemandProfits.php which sends them to sales page without ever exposing my affiliate link.

 

You can also use javascript to cloak a link, and there are products and services that cloak links, but I think using php is the best way. Not everyone allows scripts to run on their machines, so if you use php it does not matter if they have javascript disabled.

 

J Watcher
December 15, 2008

How to cloak your affiliate link