Intro
Cloaking your affiliate links is an effective way of preventing people from stealing your commissions or just not clicking on them because they look like an affiliate link. A "cloak" is simply just a redirect. There are various methods of doing this but using HTACCESS is my favorite. It's Free, it allows me to manage as many redirects as I want, and it's easy to manage with just a single file. Also with using html to redirect my file all someone has to do is look at the source code of my site and read the html where my links are plain to see. With htaccess if they try to read my source code they'll see the links as I want them to see them, the same way they appear on the website. The reason is that my actual affiliate links are hidden away in the .htaccess file on my server.
There are a number of reasons why not to link directly to an affiliate page with your ID. The obvious reason is that it advertises your affiliate ID and the program your using to everyone who hovers their mouse over your link. Some people are also hesitant of clicking on affiliate links thinking that all affiliates are just scammers and I'll just go straight to the sites URL thanks.
Creating the HTACCESS file
To create our .htaccess file we first open up any regular text editor. I use a Windows system, sorry.., so I'd open up notepad.exe and create a file called htaccess.txt . Note: Make sure word wrap is turned off. Your file should be a clean text file without any formatting.
Then just type your file like the example below. Note, the 4 lines below are an example. If you only need to cloak one link you would naturally only have one line. If your cloaking 5 different links, You'd have 5 lines. The name "myCBname" represents your click bank ID and would naturally be replaced with what ever your id is, if you don't use clickbank you'd put whatever affiliate ID your promoting here.
Redirect /acmewidgets http://www.myCBname.acmewidgets.hop.clickbank.net
Redirect /a-reallycool-product.html http://my-linker.com/hop/some-link-I-want-to-track/
Redirect /joe-blow.php http://www.myCBname.a-cool-product.hop.clickbank.net
Redirect /thisis.crap http://www.myCBname.another-cool-product.hop.clickbank.net
The key here is to place the word "Redirect" then a space, then the link that you want to be displayed, ie the link you have in your website, such as "this_is_my_link.html" then another space and finally the actual link you are redirecting to. There are three components. One; Redirect Two; the link you made up; and three; the link you are actually sending people to, each seperated by a space. This way your link will look like "www.mysite.com/my_link.html" but it will actually point to whatever link you want.
You put each redirect on a different line. Starting first with the word "Redirect", then a space and then the relative path HTACCESS is going to intercept.
In the first line in the example above since my second part of it is "/acmewidgets", that means if my domain is: www.affiliateinfozone.com
... And someone goes to:
www.affiliateinfozone.com/acmewidgets
... It will send the user to the third item on that line, my long clickbank hoplink for acme widgets.
The redirect can be any name you want. You could make people think you're linking straight to an HTML file on your site, like in the second example. Or, it could end with ".php" if you want (3rd line) or even something you make up, like "dot-crap" (last example). Whatever you come up with will work. It intercepts based on a match of the text in the second part of the Redirect line and sends you off to the link specified in the third part of the line.
To clarify further. Lets say I'm promoting a product called "Strip That Fat". Hmmm Where did I get that idea from?
My click bank ID is Scottay12, and my website is www.best-diet-plan.com
Feel free to go check out my site, I have nothing to hide, in fact it's a great example of a presell page and converts quiet well, but that's another lesson. Now my links could all show up as http://scottay12.stripfat.hop.clickbank.net
and that's fine, click on them, go to the merchant, buy the product, I get paid. Problem is I'm going to lose a lot of clicks because people are hesitant to click an glaringly obvious affiliate links.
Notice how none of the links on my site show that url though. They all show www.best-diet-plan.com/stripthatfat.htm however I can assure you the actual URL they go to is the first one I showed you.
The .htaccess file I use is only one line;
Redirect /stripthatfat.htm http://scottay12.stripfat.hop.clickbank.net
Notice the three parts,
1, "Redirect" and then a space
2, "/stripthatfat.htm" this is the fake link I'm using, followed by a space.
3, "http://scottay12.stripfat.hop.clickbank.net" this is the actual link people go to.
Feel free to use the links I've displayed here in any of your online content. ; ), just kidding..
Uploading The File
To upload the file you'll have to use an ftp program like core FTP lite which I found to be very easy to use. You can get a copy of it here,
www.coreftp.com
Just modify the htaccess.txt file to your needs, save it as "htaccess.txt", upload it to your hosting server in the same directory as the pages that have the links, then chmod the file to 755 [This refers to the permissions granted to the file, check your FTP program to see how to do this]. In CoreFTPlite you right click on the file name, select Properties at the bottom of the menu that comes up and enter 755 for a value in the dialog box. Then rename the file to .htaccess with that dot in front. In coreFTP just right click on the file and select rename from the menu that pops up and type in the new name .htaccess .
The file may disappear to you, because it becomes a hidden file by default, but if you need to come back to it later you can still see it with many FTP programs. Just check the help file that comes with your program and search for how to show hidden files. If you can't see it doesn't matter anyway since you can edit it on your computer, re upload it, change it's name again and it'll just overwrite the old one. Now surf to your site and check your handiwork.
Conclusion
That's it. Now all your links can look like they exist on your own website like www.mysite.com/clickhere.htm and people won't notice the redirect until after it's happened. By then they're at the merchants site and hopefully getting out their credit card.
If you have any questions feel free to PM me.
And please rate this tutorial by clicking on the stars up top. I hope you found it helpful.
Thanks,
Scott aka Scottay
1 comment:
Thanks for your excellent information. It is just what I needed. However, I still have a few questions.
I am an affiliate for a site called www.cooking.com through Commission Junction. I put the link with an image on my www.recipesfromgrandma.com site.
On Commission Junction I chose the image I wanted and then got their html coding for the link and image. I put this coding in my recipe wordpress site. It works fine except you can see the affiliate link.
If I create a redirect that looks like this:
redirect /goodcooking http://www.kqzyfj.com/click-3163222-10377603
What should the coding in my recipe site be? Should it be the original coding that I got from Commission Junction? If not, what should the coding be?
I have tried all sorts of different things but when I select the image on the site, I get the url with the affiliate link in it.
Not sure what I am missing here, but I sure would like to figure this out.
Can you help?
Jeanne
Post a Comment