NICHE MARKETING | How to Hide Your Affiliate Links using a PHP or HTML Redirect

Affiliate Theme

How to Hide Your Affiliate Links using a PHP or HTML Redirect

February 9, 2009 by Ryan
Filed under: Make Money Online 

Using a PHP redirect or HTML refresh to hide your affiliate link is something you should get in the habit of using. A redirect that masks your affiliate link is extremely important when running an email marketing campaign and your sponsors usually request that you do so to prevent their links being marked as spam.

Here are the basics:

1. How to Setup a Domain Redirect
Example: http://mymassagecareer.info/

All you do after you purchase the domain is host it on your webhost and change it to redirect to a different URL. This will redirect to one URL and only one URL.

2. How to Setup a PHP Redirect
Example: http://usenet-tutorials.com/nichetitans.php

This is all the code you need:
<title>nichetitans</title>
<?php
header( ‘Location: http://nichetitans.com/how-to-hide-your-affiliate-links-using-php-or-html-redirects/’ ) ;
?>
This will redirect directly to the URL specified in (‘Location:http://domain.com/‘) and this is all the code you need in the .php file.  Literally copy and paste this code, change the URL and save as a .php. Once you’ve done that all you need to do is upload it to your web host and type in the URL as you created it, for example: hxxp://domain.com/nameofphpredirect.php

3. How to Setup a HTML Refresh Redirect
Example: http://googlegivesmecash.com/google-money-tree.html

<html> <head> <title>Google Money Tree</title> <META http-equiv=”refresh” content=”1;URL=http://www.adsjmp.com/track.asp?a=CD4613&b=14193&d=0&l=0&p=0&o=”> </head> <body bgcolor=”#ffffff”> <center> </center> </body> </html>

This is the exact code you need in the .HTML and the only code you need. Just copy and paste this code in to a new document, change the URL=http://domain.com/ and save it as a .HTML. Once you’ve done this all you need to do is upload the redirect to your webhost and type in the URL as it was created, for example: hxxp://domain.com/nameofredirect.html

These are the easiest ways to hide your affiliate links. So which one of these methods is the best? The answer is it really depends on what you’re using it for and what you need to accomplish.

1. Using a Domain Redirect
- This is best if you want something short and easy to remember.

2. Using a PHP Redirect
- This is best if you want to redirect to another page quickly without the target affiliate link showing up in the address bar like it may if you’re using an HTML refresh.

3. Using a HTML Redirect
- This method is best if you don’t want your affiliate sponsor to see where your traffic is coming from and can be quite effective in hiding your landing page. It basically pauses for the amount of time you specify and enters the exact URL in to the browser.

Easy and Effective – I hope this everyone hide their affiliate links if they aren’t hiding them already!

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Related Posts by the Niche Titans:

  1. Best Wordpress Theme for Landing Pages and Affiliate Sites
  2. Relative Links
  3. Can Directories Be a Good Source for Links?
  4. How To Create More Links with List Building Articles
  5. How to Create Links for Free and Generate Traffic

Want to be notified when we post
more Niche Marketing articles?
Subscribe via RSS Feed

or get free site updates by email:

Comments

3 Responses to “How to Hide Your Affiliate Links using a PHP or HTML Redirect”

  1. Sacramento Weddings says:

    Great stuff for all bloggers who use affiliate links!

  2. What about cloaking the URL? Is it frowned upon to do that? With Google adwords and promoting affiliate programs, it’s been challenging. Any recommendations?

    Thank you,
    Brad

  3. candiefos says:

    I have a nice joke. Why do cows wear bells? Because their horns don’t work.
    ___________________________
    –/ viagr com Omaha /–

Leave a Reply


SEO Powered by Platinum SEO from Techblissonline