Welcome To eMonetized.com - A Social Media, Internet Advertising and Affiliate Marketing Blog.

Hiding Your Affiliate Links – Revisited

Posted on September 12, 2007 by Tim Schroeder

Back on June 27 2007 I posted an article on Protecting Your Affiliate Links. This method used both Javascript redirects and a meta-refesh code.

A few days ago Kumiko of Cash Quests made a post titled the “New Internet: Now Without Affiliate Links.”

This is basically along the lines of my original post about protecting your affiliate links but with a twist. Instead of setting up one directory with all your affiliate links, you would create a separate directory for each link. Each directory would include an index.php file which would be used for the affiliate redirect.

So instead of linking to an affiliate link such as www.emonetized.com/go/blogmastermind.html I could use www.emonetized.com/blogmastermind/ ( go ahead and test them 😉 )

Setting up seperate directories for each affiliate link is a pretty clever idea and could work well for some websites. However, on websites that are going to use several dozen or even hundreds of different affiliates links, I’d agree with Derek that managing one folder for each affiliate link is tedious.

A few days after Kumiko’s post, Derek Beau made a post titled “How To Hide All Your Affiliate Links With Only One File.”

This method allows you to use a single php file for all your affiliate links using a PHP redirect file and HTACCESS for masking the links. In fact, you can customize the .htaccess file to make your links look like anything.

I’m not going to go into details about how this last method works because he details everything in his post but so far it’s one of the best solutions for hiding your affiliate links that I’ve found.

Did you enjoy this post? Please Subscribe via RSS or eMail.

19 Responses to “Hiding Your Affiliate Links – Revisited”

  1. Starfeeder

    - 12th Sep, 07 02:09pm

    Thanks for the informative post 🙂

    Now just gotta find the right affiliates…

  2. Adnan

    - 12th Sep, 07 07:09pm

    Great post Tim – and it’s funny you mention Kumiko, because I recently used that technique and starting hiding my affiliate links too. I like having the directories, probably because I’m only a member of a few affiliate programs, so its not that much effort creating new directories.

  3. Indra Diky

    - 13th Sep, 07 11:09pm

    is it ok with the TOS? BTW, thx 4 the info.


  4. Patches and Hacks

    - 18th Sep, 07 10:09pm

    If you want an even better/easier way to hide your links you should take a look at my new plugin for wordpress that let’s you manage such links from wordpress admin without having to write any php , html or javascript code.
    you can find out more about this free plugin here:

  5. Smart websites make money

    - 29th Oct, 07 01:10pm

    Yes, it seems that more and more people know when it is about an affiliate link and won’t click them, so hiding them may be vital

  6. Todd Morris

    - 27th Nov, 07 05:11am


    I’ve found that by far the easiest way to hide affiliate links is to use this redirection plugin: http://urbangiraffe.com/plugins/redirection/ It even has a good stats page, so you can track your clicks.

    Hope this helps

  7. Hide Affiliate Links

    - 27th Dec, 07 11:12pm

    I just finished writing an in depth article about another method of hiding links from hi-jackers that might interest your readers. This uses sub-domains instead of directories and includes full reporting from the web host provider.

  8. Felix

    - 29th Dec, 07 08:12pm

    This is good info, I really like the 2 examples you used quite sneaky. But for those of us that don’t like code or know code I guess a plugin would be really helpfull

  9. Amit

    - 5th Jan, 08 08:01am

    Hi Tim, I am using the 1st method with lots of sucess & It is also very easy to implement. Another method would be using a cloaking software

  10. Hafiz Dhanani

    - 12th Mar, 08 02:03pm

    It would be nice if there was a wordpress plugin to help you find affiliate links. Does anyone know of one?

  11. Make Friends, Earn Money

    - 4th May, 08 06:05pm

    This is a very good technique, will give it a try, i think it will come in very useful on my site. thanks again

  12. sweetrock

    - 9th May, 08 09:05pm

    How can we hide affiliate links in blogger.
    did somebody tried or any suggestion

  13. nithin

    - 15th May, 08 02:05pm

    hey I heard that before but later I forgot that. now after seeing your post it stuck me again.

  14. getting paid for surveys

    - 11th Nov, 08 10:11pm

    It is always best to hide your affiliate links. In one of my blogs I use a directory called recommends and hide the link in a php file. Works wonders.

  15. The Guru Assassin

    - 26th Jan, 09 03:01pm

    Thanks for the tutorial…it makes thing more convenient.

    I am also seeing more website hiding the merchant with affiliate links inside a Frame page.

    I wonder if it turns off the visitors. For myself, I wouldn’t buy from someone who has me encapsulated inside a frame and not revealing the url.

    Any thoughts?

  16. Ebookisdead

    - 23rd Mar, 09 02:03pm

    Good point , i am using cloaker software to hide my affiliate link permanent , edit htaccess too difficult for me.

  17. 7 Marketing School

    - 10th Jul, 09 06:07am

    it is a great post. protecting your link would be a good idea.

  18. Artikel Internet

    - 21st Jul, 09 09:07am

    Thanks for the tips, i will try at my blog.


  1. Hide Affiliate Links with PHP - 18th Sep, 07 02:09pm

What Do YOU Think?

© 2007-2009 eMonetized.com Affiliate Marketing Blog. | SUBSCRIBE