Fred Black pqInternet E-Mail Signup

Insert your name and e-mail address to receive a short notice each time I make a new post.

First Name:

Last Name:

E-Mail Address:

E-Mail again:

NOTE: You will receive a confirmation email. You must click the link in the email to subscribe. Please check your spam folder(s) if you don't receive the email.

*I value your privacy and will never sell, rent, giveaway, or abuse your information.

 

Internet Marketing, Internet Business, Make Money Online, Work from Home

Internet Business and Marketing

pqInternet.com

About Fred W. Black.

Fred W. Black

Link to Me!

How to Link to this Blog.

Categories

All

ClickBank

Copywriting

Funny

Internet Business

Internet Marketing

Life & Law of Attraction

Search Engines: SEO

Technology

Traffic

Truth and Freedom

Web Site Design, HTML, CSS

Recent Entries

Marketing Lesson from the Homeless...

When Good CSS Goes Bad

The Honest-to-God, Unvarnished Truth About Success

Are you Fishing with Bird Seed?

Why Do Smart People Sometimes Find Success So Difficult?

Using My Software to Determine Why a Site Ranks Poorly in Google

Toilet Paper Millionaire!

Freds Inverse Law of Marketing Intelligence (the cream, as well as, the crap rises to the top)

Are You Failing Miserably or Miserably Failing?

Know Yourself

Are You Putting Cash in the Trash?

Behind Bars: Could the New FTC CAN-SPAM Rules Land You In JAIL?

Who Cares?

SEO: Number 1 and Number 2

Beyond SEO - The Tale of the Three Legged Dog

All Entries

Recently Commented On

The Honest-to-God, Unvarnished Truth About Success

Marketing Lesson from the Homeless...

Who Cares?

Build It and They Will Come...

When Good CSS Goes Bad

Using My Software to Determine Why a Site Ranks Poorly in Google

Toilet Paper Millionaire!

Are you Fishing with Bird Seed?

Archives

All

Say No to the
No Follow Tag

Books & Things.


 


 


 


 

« Previous | Home | Next »

 

Cloaking Your Affiliate Links

February 28, 2007

Prompted by an article Michael Fortin published on his blog, I've decided to post a series of articles detailing the code behind some of the redirects and "tricks" that I use with Clickbank. A lot of these are applicable to other payment processors/affiliate programs was well. Protect your Internet business by using these techniques.

In this first article, I'll give some examples of cloaking your affiliate link using server side redirects. Why would you want to do this? There are two reasons:
1) Because there are cheaters out there that have a Clickbank account and will purchase the product you're promoting by looking at your purchase link and getting the Clickbank Nickname of the vendor. Then they will build a link to put themselves in as the affiliate, thereby getting your commission and getting the product for less, because they've stolen your commission, and
2) Because you can use redirects to shorten the length of the purchase link and shorter links are generally more desirable.

What is required to do this? You need a web hosting account that supports PHP or ASP.

Is it hard or complicated? No...
You need to make a simple script or web page and put the code from the examples below in it. You want to put this file in its own subdirectory or folder under your web site's root directory. If you're using PHP, you want to name it index.php, or default.php - whichever is the default page name for your server. If you're using ASP, name it index.asp or default.asp. Using this name (the default page name) will cause this page to load by just specifying the directory, for example: http://www.pqInternet.com/muvar will cause the index.asp page in the muvar subdirectory to load automatically, you don't have to specify the index.asp.

What do I use to edit and/or create the file? You can use a simple text editor like Notepad that comes with Windows. I recommend a free tool call Notepad Plus that's a real code editor. You can download it from here: http://notepad-plus.sourceforge.net/uk/site.htm.

Clickbank Hop Links: ClickBank uses a link called a hop link. When your potential customer clicks on your hoplink, they are sent to the vendor or publisher's sales page. A cookie is created that associates your affiliate ID with the product, so if they make a purchase, you receive a commission payment. A hotlink is formed by using the syntax (code structure) below.

This is what a hoplink looks like:
http://[Your ClickBank Nickname].[Affiliate Product Publisher].hop.clickbank.net

Replace "[Your ClickBank Nickname]" with YOUR CLICKBANK NICKNAME.
Replace "[Affiliate Product Pubisher]" with the Affiliate Product that you're promoting.

Example: http://PhaseQuest.Muvar.hop.clickbank.net will sell Muvar with PhaseQuest as the affiliate. In other words, I'll make a commission from the sale.

What do I put in the file:
For PHP:


For ASP:


Ok, I've made the file, what now? You need to use whatever method you use with your hosting provider to upload the file to your web site, into a new subdirectory.

In the above example using Muvar, I made a subdirectory named muvar under my main site and copied my index.asp file to it. So my affiliate link for Muvar is http://www.pqInternet.com/Muvar. It's in the right column under recommended products.

If you found this helpful, but a little confusing, you can watch and listen to this and more in my online home study course: Making Money Online.

Until Next time... when I'll talk about using your own sales page and linking directly to the Clickbank purchase page, skipping the vendors own sales page.

Fred

About the Author

Fred Black is an experienced programmer, web site developer, online business operator, systems integrator, father, husband, musician, and songwriter. Visit his Internet Business Blog at: http://www.pqInternet.com.


Insert your name and e-mail address to receive a short notice each time I make a new post.

First Name:

Last Name:

E-Mail Address:

E-Mail again:

NOTE: You will receive a confirmation email. You must click the link in the email to subscribe. Please check your spam folder(s) if you don't receive the email.



Reddit Add this Article to Onlywire del.icio.us Technorati StumbleUpon Netscape Sphinn Top Blogs

Tip Jar: Leave a Donation

Comments: 2,   TrackBacks: 0.

Posted by Fred on February 28, 2007 | Printer-Friendly

TrackBack: http://www.pqInternet.com/Blog/mt-tb.cgi/25


Assigned Categories: ClickBank | Web Site Design, HTML, CSS


Related Entries:


You may reprint or distribute this article as long as you leave the content and the About the Author resource box at the end intact.

 

 
Comments and TrackBacks 
  Comments:
  1.  

    I'm very interested in knowing how a person can copy the source code from an affiliate product page so text links can be added for linking campaigns but still be functional and hide my clickbank hop link URL from being seen anywhere.

    Could you answer this question for me.

    Posted by Jason Madden on January 2, 2008 9:51 PM

  2.  
    From Fred...

    Hello Jason;
    Thanks for stopping by!
    This post shows how to hide your clickbank hop link URL. As far as how to copy the source code from an affiliate page, that can be easy, or very hard, depending on the page you're trying to copy. If it's a simple page, then just doing a "view source" in your browser will show you the code. However, if it's a complicated page, you will have more editing to do. Learning more about HTML and scripting will help: see my courses listed in the "My Courses & Products" section in the right hand column.

    Fred

    Posted by Fred Black on January 2, 2008 11:31 PM

 


Post A Comment









Remember personal info?






Subscribe

Insert your name and e-mail to receive a short notice each time I make a new post.

E-mail Address:

E-mail address again:

First Name:

Last Name:

NOTE: You will receive a confirmation email. You must click the link in the email to subscribe. Please check your spam folder(s) if you don't receive the email.

My Courses & Products

Web Site Creation Course: HTML, CSS, and More... Free!
 

Interactive Web Site Course: PHP, JavaScript, Forms, and More... Free!
 

Make Money Online: Complete Online Business Course... Free!
 

Article Marketing Software.
 

Photo Gallery - pqGallery.com
 

Blue Solar Water Bottles
 

Pretend with Miss Kim.
Children's Creative Movement DVD
Pretend with Miss Kim (my wife) takes children on an imaginary fun time as they learn the basic movements of ballet and dance.

Search


RSS Feeds, etc.

Subscribe to Blog Feed:

RSS Feed
RSS 2.0 Feed for www.pqInternet.com. RSS 2.0 Feed
RSS 1.0 Feed
Add to Google Toolbar

Add www.pqInternet.com, to Google.
Add www.pqInternet.com, to My Yahoo!
Add www.pqInternet.com, to My MSN.
Add www.pqInternet.com, to My AOL.
Subscribe to www.pqInternet.com, with Bloglines
Subscribe to www.pqInternet.com, in NewsGator Online
Subscribe to www.pqInternet.com, in Rojo
Subscribe to www.pqInternet.com, in FeedLounge
Subscribe to www.pqInternet.com, in NetVibes
Add www.pqInternet.com, to Your Technorati Favorites!
Subscribe to www.pqInternet.com in myEarthlink
Add www.pqInternet.com, to Windows Live

What are Blog Feeds and RSS anyway?

Products I Use & Recommend.

www.3WayLinks.Net

Wordtracker Keyword Research Tool

www.aweber.com Opt-In List Management.

1&1 Hosting

Blogroll

Clayton Makepeace

Terry Dean

ProBlogger

Eric Graham

Michel Fortin.com

Jonathan Leger

Robert Phillips

Dr. Joe Vitale

Ryan Healy

Richard Lee

G. Brent Riggs

Search Engine Journal

Links

Cell Phones for Soldiers

the IconFactory

Fred Black Music

Niall Kennedy

The Lions Paw

Web Hosting.

My Recommended Web Hosting Service: 1&1 Hosting

Mugs, Mousepads, etc.

About this Blog

By:Fred W. Black

Contact Information

Powered by:Movable Type 3.34.

Copyright 2006 -2008, PhaseQuest.Com.
All rights reserved.

Resources L2

Some photos are by: Lee Hinshaw Photography

© Copyright 2006 - 2008 PhaseQuest, all rights reserved.