How to Use PHP Redirects to Cloak Affiliate Links
- : 6.0
- : 4.0
- : 2.8
- : 5.8
- : 5.3
- : 4.8
Many Affiliates Swear By Cloaking Affiliate Links Through PHP Redirects
I use them on some of my sites. On some of my sites I don’t (like this one). Sometimes I notice lower click through and conversion rates with PHP redirects, so when working with a new site, or a site with a less savvy audience I don’t cloak my affiliate links. This isn’t something that every affiliate has to do, but it is fairly straight forward, easy to set-up, and leaves no question as to whether spyware or bots are filtering our your affiliate tracking or affiliate id’s robbing you of commissions.
Not only are PHP redirects good for protecting from filtering, but the also streamline the process of managing the multitude of affiliate links you might use for a particular site. Using a PHP redirect will eliminate the need for you to keep a seperate spreadsheet with affiliate links, log-in to multiple affiliate management portals, and shorten the overall length of the affiliate links which makes them more “user friendly”.
Simple PHP Redirect to Cloak Affiliate Links
This technique will allow you to manage thousands of affiliate links within one PHP file. To begin, create a PHP file. I suggest naming it links.php, but that is totally up to you. Next, enter the following:
In this PHP redirect, ‘afflink’ is the name convention you would use to describe your affiliate link (ex program name or offer). ‘http://myaff.com/index.php?id=myaffid’ is your unique afiliate link provided by your affiliate program.
Now here is the easy part, to add additional affiliate links that need to be cloaked, simply add the following:
Remember to follow the earlier redirect, and all successive redirects with a comma (,) so that multiple affiliate links would look like:
Using this PHP redirect the affiliate links that you will use now look like:
http://www.yourdomainname.com/link.php?id=eBay
http://www.yourdomainname.com/link.php?id=google
That’s it. Nothing more, nothing less. Of course there are numerous other ways to cloak your affiliate links, but in my experience, when forced to cloak my affiliate links, using PHP redirects has proven to be the easiest and most effective.
- : 6.0
- : 4.0
- : 2.8
- : 5.8
- : 5.3
- : 4.8


