What is link cloaking and why is it important?

Enter a reason for deleting this comment

What is link cloaking and why is it important?

“Link cloaking” is a term that you might not have heard of if you are a newbie in affiliate marketing. It is a very important task for all the affiliate marketers especially to protect your hard earned money.Imagine you make a review site or an affiliate site in which you have spent a lot of money to look good. You have put your affiliate link for people to click and buy the product so that you make a commission. But wait! What if some hacker or any other harmful person comes and changes your affiliate link with theirs?All your hard work, time and most importantly money are wasted because you will not be able to make any money with it and someone else will enjoy the benefits of your hard work.Don’t be afraid because that happens very rarely, but it can happen to you. So, what can you do to protect yourself from it?You hide your affiliate link (not from the traffic). This is what we call “link cloaking”.This simply means you change the way it looks so that someone cannot recognize that it is an affiliate link.This will also help you to increase your conversions.Let’s take an example-Suppose you find the link below on a website or someone emailed this link to you are less likely to click on this link. Simply because it looks spammy and ugly. And they will think this is a virus or something like that. But if your link was like you are more likely to click on the link. Because it looks much more appealing and trustworthy than the previous link.So, these are the two basic purpose of cloaking your affiliate link-1) To hide it from the hackers2) To increase your conversionsNow, you have learned what is “link cloaking”. But the next question which will come to your mind is that how can you do it?If you use Wordpress then it is really a very simple thing to do.Just login to your Wordpress admin page. Then click on settings and go to “permalinks”. There you can easily choose what link structure you want to use. I highly recommend using the “Post name” structure because it looks really good and good for SEO as well.If you use FTP client like Filezilla then simply make a text document and rename it to robot.txtThen simply put the code-<?phpHeader(‘Location: your link’);?>You have to put your link in the “your link” area. Then simply change the file extension from .txt to .php then put in in a folder and name it whatever you can and then upload it to your server using your FTP client. Suppose you name it “money” and your domain name is Then this link will take you to the target URL- So, this is what link cloaking is all about. Hope this article has helped you.


Please login or sign up to leave a comment


  • Pretty Link Lite
  • Easy Affiliate Links
Are some link cloak plugins...
People say by link cloaking, your affiliate commission will reduce, so better find it out before link cloak.....

Are you sure you want to delete this post?


I think this web page replies more accurately to your question:

I think it was a nice bit of information, that's why i am sharing with you ;)
Hope you enjoy What is link cloaking and why is it important?

Are you sure you want to delete this post?


Very interesting! I prefer to use the php redirect trick for masking my affiliate URLs that I use on my own site or somewhere else. I'll just link to that link that I've created just for it. Which is basically the same one that you have posted above and used in a php file. I find this works best for all my needs and there's no complicated messing around to create it. I just copy one of the current files, edit it and replace the old link with my new one then just rename that file to whatever I need it to be. It only takes about 1 minute to do and you can do it over and over again. So long as you place that file in a location where it remain so that when the link is clicked the redirect will work properly. This method means your links wont get hijacked too!

Are you sure you want to delete this post?


Gosh you truly learn something new everyday. I've never heard about link cloaking or someone being able to steal your affiliate link. Even though you have advised us not to be scared this is some scary stuff. They are some evil people out there. The internet has taken crime from the streets and put it online. If you are so clever and can choose your affiliate link, why not just get your own traffic. Smh!

Are you sure you want to delete this post?


I didn’t know that a hacker can edit the link that you had posted in another site. Maybe that can be done because nothing is impossible in the internet. Although it looks easy to cloak your link but it may cause confusion. What I mean is if I will be cloaking all my links for my affiliate marketing then I might get confused that I may forget what that link is all about.

Are you sure you want to delete this post?


I've never tried this but I've heard that affiliate marketers can also use url shorteners to sort of "mask" their long affiliate url. I know a number of those links led web users to spammy sites which is lots of people started ignoring such links.

I'm thinking link cloaking would be a better choice but the anchor text should tell whoever clicks on the link what they'll find on the other side. There's much you'll gain if you are that transparent.

Are you sure you want to delete this post?