Premium Website Hosting - Hostgator

Clickbank Redirect PHP Script

Written on July 20, 2009 – 3:52 pm | by Alexander X |

Selling Multiple Item on Clickbank

Firstly, I need to explain about the structure first. Look at the figure below.

The flow of the redirect system

The figure explain the relationship or flow of browser to several pages. There are two files you need to create or involve. index.php and redirect.php. It is not a must to name this two files like this. It is completely up to you. Address to index.php will be the address to use in your clickbank account website. for example

http://www.imtipsblog.com/index.php

This index.php will process redirect using a parameter passes to web browser. For example, I will use parameter ‘itm‘. This parameter will containing key to choose which page it will redirect to. The keys are predefined in the redirect.php.

Example of redirect.php contents

For example, if you want to go to a product3 page,

http://www.imtipsblog.com/index.php?itm=product3

You can add up as many keys as much as you want. Just add more line to the corresponding code like this.

Add more lines to add keys

Pay attention to the last character of the line. At normal lines, there is a ‘comma’ at the end, unlike the last line. The last line is leave empty to redirect to default page if no parameter is pass. For example,

http://www.imtipsblog.com/index.php

And for index.php contents, you just need a simple line telling the browser to access to redirect.php and process it.

Index.php contents

That’s it. Upload both file into yer hosting and banzai! No need to money anymore for a merely simple scripty. Oh! Make sure both file in the same folder. Don’t separate it unless you want to tweak index.php. Both file need to exist in same directory.

http://www.imtipsblog.com/index.php
http://www.
imtipsblog.com/redirect.php

or

http://www.imtipsblog.com/clickbank/index.php
http://www.
imtipsblog.com/clickbank/redirect.php

Get the point? If not, then ask again.

How This Work With Clickbank Affiliate Link?

Say, for example, your affiliate link is like this

http://affiliate_clickbank_id.Your_clickbank_id.hop.clickbank.net

To make it simpler, lets use john for affiliate_clickbank_id and yourname for Your_clickbank_id.

http://john.yourname.hop.clickbank.net

Set up your link in your clickbank account HopLink Target URL to the index.php file.

Change your HopLink Target URL to index.php address

Then to redirect to different product page, tell your affiliate to use their hop link like this

http://john.yourname.hop.clickbank.net/?itm=product1

or

http://john.yourname.hop.clickbank.net/?itm=product5

This will lead to different product pages. And if you only use hoplink without parameter, then it will redirect to the page in the last line in redirect.php file keys.

I thinks that’s all about it. Maybe it a bit vague though, but if you have any doubt, feel free to drop a comment. Good luck!

File Download:

Free Clickbank Redirect PHP Script
Contain index.php and redirect.php files.

Share and Enjoy:
  • Print this article!
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BlinkList
  • blogmarks
  • blogtercimlap
  • eKudos
  • LinkedIn
  • MySpace
  • Netvibes
  • Turn this article into a PDF!
  • Socialogs
  • StumbleUpon
  • Technorati
  • Tumblr
  • Yahoo! Buzz

Related Posts

  1. How to Stop Page Rank Leakage
  2. CopyNProfit Bonus |Special|Best Offer
  3. CopyNProfit Redeem Code Reviews
  4. Online Generators Collection for Web 2.0
  5. 15 Tips to Increase Blog Traffic
Get this product for FREE NOW!

9800+ PLR Products - Free Access!
200 Master Resell Products Pack - FREE Access!

Just Fill Your Name and Email and I Will Send It To You The Download Page
Name:
Email:

  1. 3 Responses to “Clickbank Redirect PHP Script”

  2. By Steven on Sep 23, 2009 | Reply

    I’m a newbie and am wanting to redirect my hoplink directly to the Clickbank Order Form — in other words, bypass the vendor copy pages altogether.

    Can this redirect work from my page as well… or does this need to be incorporated into the vendor’s page, redirecting to the order form?

    Thanks

  3. By Alexander X on Sep 29, 2009 | Reply

    Hi Steven,
    If you saying that you want to direct directly to your clickbank order form, i believe you meant that you want to direct to page where your customer pays right? then your link should be something like http://354.jiraiya78.pay.clickbank.net where 354 is your product id right?

    if you want to use this script, just put this link into the script, example
    “product7″ => “http://354.jiraiya78.pay.clickbank.net”,

    then your hoplink will be
    http://john.yourname.hop.clickbank.net/?itm=product7

    It’s a bit vague but i hope you understand it. If you still have doubt feel free to drop by. Cheers!

    Alex

  4. By Nick on Oct 5, 2009 | Reply

    Thanks for this great little tutorial!

Post a Comment


Uses of HTML code are allowed.
<blockquote>Type quote like this</blockquote>

About IMTipsBlog

Here I'll share my knowledge, discovery and experience related to my hobby, work and internet marketing. Most articles on this site are related to internet marketing tips, make money online, SEO tips and discussion, blog design and short reviews.

Subscribe to IMTipsBlog List

Get this product for FREE NOW!

9800+ PLR Products - Free Access!
200 Master Resell Products Pack - FREE Access!

Free MRR PLR Products Download
Just Fill Your Name and Email and I Will Send It To You The Download Page
Name:
Email:


Subscribe to IMTipsBlog Blog

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
Find entries :