ClickBank Affiliate Software

… to redirect visitors to particular pages on the vendor’s site.

This post is about how to create affiliate software for Clickbank vendors that allows affiliates to sends visitors to particular pages on the vendor’s site and receive credit, i.e. affiliate sales, for those visitors.

Now why would a Clickbank vendor want to allow this – could this be a Clickbank scam?

No, no, no.  Get your mind out of the gutter.  This is not a scam.  This is a way to let affiliates send visitors to the pages on the vendor’s site that converts the best (for that particular affiliate).

Or – hold on to your hat – even to the payment page (if the affiliate thinks a presell page on her or his site can convert better).

Let’s be honest, not every vendor has a sales letter that converts very well.  Why not let the affiliate do a presell and send the prospect to the payment page right away?

You can, and it is easy to do.

A simple change to the Clickbank vendor’s site information, a new page on the vendor’s site and you’re in business.

Clickbank Login

The vendor logins in to his or her account, clicks on the”Account Settings” link at the top of the page, then clicks on “My Site” and modifies the Hoplink Target URL.

Instead of having the URL be something like, this gets changed to

Affiliate Software

Time to make a slight addition to the vendor’s website that handles the redirect.

The vendor adds a subdirectory to the web page – in this case a directory called “cb” <- that’s what the vendor changed in the url information page at Clickbank.

Then creates a file called “index.php” and adds the following contents (similar to the following) to the index.php file

The index.php file gets uploaded to the cb directory.

Time out:  Going forward, let’s assume that you are the Clickbank vendor …

There are a few changes that need to occur to the content mentioned above.

The first and most obvious is to change the domain to your domain.

The second is to modify the contents on lines 3, 4, and 5 to your information.

You can also add more pages to redirect to.  Just remember to add a unique number for each page.  For instance, you might add

4 => “”,

And correspondingly, you can remove some of those pages.

Once this information is added to the index.php file, upload the index.php into the cb directory.


So How Does This Clickbank Affiliate Software Work?

Now it is time to inform your affiliates that they have options when they send visitors to your site.

Instead of simply sending visitors through an affiliate link that looks like this …

… and having them arrive at the page specified in your Clickbank affiliate account.  They can now send visitors to particular pages on your site (if you have multiple pages) using an affiliate link that looks like this…


Try it for yourself, here are some live links that will direct you to a particular page and the affiliate will receive affiliate credit for any sales that result even though the arrival page isn’t the first page the visitor sees. <- this takes you to the home page <- this takes you to the member’s page


Even Works With Encrypted Links

Here’s the same links as before, this time encrypted using Clickbank’s Hoplink Shield. <- this takes you to the home page <- this takes you to the member’s page

But Wait, There Is An Easier Way

Here’s a simple form to fill out that will create the directory and file you need to upload to your web site to allow Clickbank affiliates to direct link to ANY page (well, there is limit of 3 pages in this case … try out the premium version for all pages)  on your site and still receive affiliate credit.

What are you (you the Clickbank vendor) waiting for, try it out.


Yulia Berry

Dave, you are a genius! Thank you so much for posting this information. It works perfectly! My affiliates and I needed to separate traffic for English and Spanish sales pages and it is such a big relief now. Thank you again!!!


Great job on your part selling an English and Spanish version of your product.

Comments on this entry are closed.

Previous post:

Next post: | 522: Connection timed out

Error 522 Ray ID: 4ccd982b98b2958c • 2019-04-25 04:33:11 UTC

Connection timed out








What happened?

The initial connection between Cloudflare's network and the origin web server timed out. As a result, the web page can not be displayed.

What can I do?

If you're a visitor of this website:

Please try again in a few minutes.

If you're the owner of this website:

Contact your hosting provider letting them know your web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn't finish. The most likely cause is that something on your server is hogging resources. Additional troubleshooting information here.