
It’s always a good idea to hide, redirect, cloak, mask (whatever you want to call it) your affiliate links on your landing pages. There are tons of ways to do this, but here is one of the quickest and easiest methods.
1. Download this sample file, which uses a php redirect header. In this example it is called link.php.
2. Change the sample link in the file to your own link, rename the file whatever you would like with a .php extension.
3. Upload this file to your web server. In this example say it’s a domain called www.money.com
4. Now you can use the link www.money.com/link.php to call the affilate link that you placed in the simple php file.
It doesn’t get any easier than that.






Chad,
Thanks a lot for this! I have found this to be a major hassle at times. So, this method does not require .htaccess redirects?
Do you think this really saves you from Google slaps?
Thanks again,
Tim
No .htaccess required. It’s straight php.
As far as Google slaps… It can’t hurt!
thanks, I’ve been looking for something like this.
[...] Creating an Adwords-Ready Landing Page Landing Page Quality Score Cloaking Affiliate Links [...]
Hi
How would you use this in Frontpage 2003?
Thanks
Grant
Chad,
Thanks for this – it’s the simplest one I’ve seen. And KISS is my motto
Cheers!
Chad,
You said “As far as Google slaps… It can’t hurt!”
Noob Question: Are you implying that this might keep you from getting google slapped?
Thanks,
Long
What if you have more than one aff link on a page say 5-10 that goes to different sites how is that done?
I’ve wrote a small article dedicated to easy cloaking methods using JavaScript and PHP for others that are not so good with programming
http://richbeaver.com/webmasters/link-cloaking-step-by-step-guide/
Does this cloaking method hurt your quality score in adwords?
Cool, I’ve seen other methods of doing this, but this is the easiest. It’s just what I was looking for.
Thanks
thats beautiful! Thanks for sharing
[...] up and get ahead of the crowd. Creating an Adwords-Ready Landing Page Landing Page Quality Score Cloaking Affiliate Links Landing Page Keys to [...]
Have you tried prosper202 ? It comes with tracking and cloaking.
And I heard that simple cloaking doesn’t work with IE ?
Thx for the script!
Hi, what am i doing wrong, i used the exact same script but now when you click on the link it displays the php script on a blank page?
No, he probably is running it on a server that doesn’t have PHP installed.
Thanks for this simple, yet effective method. I use it for my CB paylinks too, that way people can’t glean your CB Nick from your bare payment link, either.
I did find out the hard way that when you use this method, make SURE you don’t leave any spaces at the top, say if you use notepad or your favorite text editor, do not leave a blank above the php code or it will not work at all.
That may be how Grant got his blank page?
HTH & have a great weekend,
Donna