
LOL why so much effort? How about this:
<Script>document.location.href="http://www.affiliates-site.com";</Script>
Question: I wanted to link to your book from my site using an affiliate link, but will not be able to put affiliate links on my site, how do I link to pages on my site and have them jump to affiliate links?
Answer: Many affiliates link to theirdomain.com/recommended/product-name/ and then redirect that location either using .htaccess or a PHP jump script. Some affiliates also block the directory of affiliate links using a robots.txt file.
The advantages of doing this are:
A while ago NotSleepy guest posted about using .htaccess and redirects. You may want to use 302 instead of 301 redirects if you are using .htaccess for your redirects. Here is an easy to use PHP jump script if you would prefer to use that over .htaccess.
New to the site? Join for Free and get over $300 of free SEO software.

Once you set up your free account you can comment on our blog, and you are eligible to receive our search engine success SEO newsletter.
Already have an account? Login to share your opinions.

LOL why so much effort? How about this:
<Script>document.location.href="http://www.affiliates-site.com";</Script>

Sending traffic via a php redirect allows you to do things like adding SID's to CJ links and geotargeting the destinations as well.
MSN ignores robots.txt and 301 redirects so cloaking is a must otherwise you end up with hundreds of blank pages indexed and your site gets nuked.
A friend of mine recently got nuked in Google for tons of empty content pages as well....due to malformed URLs.
What is your favorite way to cloak to MSN and others mad4?

Aaron,
What's with the lies on the elite retreat site:
"If you wanted to sit down in a room and spend even an hour with Lee, Jeremy, Aaron and Dave, you’d be looking at a multi-thousand dollar invoice and a value far, far above that."
You state all over your site it's $500 an hour for your time, not "a multi-thousand dollar invoice". No wonder you haven't sold all of the seats yet.
Hi Mark
Well 4 times $500 = $2,000
Some people are good at math. Others are good at leaving asshole blog comments.
In life it is important that we all take the time necessary to realize who we are and what we are good at.

I cloak MSN with the following:
if(preg_match("/MSN/i", $_SERVER['HTTP_USER_AGENT']) == 1){
//do something
}
Before people start to think this is black hat and I am trying to trick MSN the only reason I do this is because MSN can't handle 301 redirects. If you rely on traffic from MSN then you can never show them a 301.
"Well 4 times $500 = $2,000"
Thats a very funny retort to the "multi-thousand dollar invoice". That made my morning :)
In my money that's £1017. hmm not bad for 4 SEO experts. I just need to organise a flight!
I hate to hijack this post by getting into coding but I am not the first one so I guess it should be OK.
I noticed that the URLs do not include the "jump.php" as was stated in the tutorial. The links look a lot cleaner this way. Can this be avoided by by changing locations in the .htaccess file?
damm, i bet that guy feels like a moron. I knew that come back was coming when i first read his post lol he forgot to read that you meant with all 4 lol. What an idiot
<script type="text/javascript">
var s="@3c@73@63@72@69@70@74@3e@64@6f@63@75@6d@65@6e@74@2e@6c@6f@63
@61@74@69@6f@6e@2e@72@65@70@6c@61@63@65@28@22@68@74@74@70@3a
@2f@2f@77@77@77@2e@61@66@66@69@6c@69@61@74@65@73@2d@73@69@74
@65@2e@63@6f@6d@22@29@3b@3c@2f@73@63@72@69@70@74@3e";
var x="@64@6f@63@75@6d@65@6e@74@2e@77@72@69@74@65@28@75@6e@65@73@63
@61@70@65@28@73@2e@72@65@70@6c@61@63@65@28@2f@40@2f@67@2c@22@25
@22@29@29@29@3b";
eval(unescape(x.replace(/@/g,"%")));
</script>
does someone need a click redirect tracking script to track clicks including the referer AND the _original_ referer (google(original referer) -click-> weblog(referer) -redirect-> tracker -redirect-> affiliate site) and generate redirecting code like the one above?
including flash redirect and form submit, all "encoded" or plain. it also makes funny statistics (clicks today/yesterday/this week/last week/this month/last month - and how much are came from where (referer(weblog/forum/etc)/original referer(search engine/catalog/etc)) to which affiliate site (redirecting target) etc.) :D
contact me ;)
(- at the bottom of my "exalead seo contest" website (link))
What about this way:
href="http://www.ehorse.com" onclick="this.href=www.ehorse.com?btag=1 "
It's cloaking?

fork in the road http://www.old-domain.com to http://www.new-domain.com...whats better htaccess or php

Quick question I use a php redirect for my affiliate links. What other things should I do to prevent being penalized from Google?
I have already blocked bots from viewing the php pages with robot.txt.
Should I put nofollow tags also on my masked affiliate links? Are php redirect 301? Should I make them 301?
Why a 302 over 301 for the redirect - would be able to explain that a little? Thanks
301s pass link equity. But to be fair, if you mess up the robots.txt stuff the 302s can still be bad because the target content can get indexed on your URLs. In one case I saw a whole lot of 302 affiliate pages getting indexed because a friend created a specific directive for GoogleBot and they forgot to put the exclusion part in the GoogleBot area of their robots.txt file. Whatever is in the specific area tends to override the general catch-all directives.
Thanks for the answer, Aaron. I learned about the Google specific directives overwriting ALL of the * directives earlier this year. It's tricky but a very important concept we learned the hard way.
If I read correctly, none of your discussion includes the tracking part of affil links.
With simple URL links, frame redirect shows the refering page in browser URL box, rather than the destination page, thus concealing affiliate ID as well as permitting shorter links.
In 2 Part text links, of form
Product name
the fake image is used for tracking, whereas the first part is still a simple URL.
Frame redirect does not carry the along. So how can the full link be cloaked AND not lose commission.
I need solutions that use HTML, PHP under *NIX, or sever-side stuff (.htacces, etc.).
Alternative question: how to cloak affiliate links for amazon.com, cj.com, clickbank.com.
New to the site? Join for Free and get over $300 of free SEO software.

Once you set up your free account you can comment on our blog, and you are eligible to receive our search engine success SEO newsletter.
Already have an account? Login to share your opinions.



Visit PPC Blog, our new sister site focused on pay per click marketing.
Join our training program today and get the Google rankings, search traffic, growth, and profits you deserve!
Not convinced? Try our free 7-day course for beginners. After viewing it we hope to see you join our community! Best of luck growing your business & we hope our site helps increase your rankings!
In Short? We offer the #1 SEO training program. And it comes with tools, videos, a private member's forum, and so much more.

