Clickbank Redirect PHP Script
Selling Multiple Item on Clickbank
Firstly, I need to explain about the structure first. Look at the figure below.

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.
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.
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.
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.
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.

























3 Responses to “Clickbank Redirect PHP Script”
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
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
By Nick on Oct 5, 2009 | Reply
Thanks for this great little tutorial!