How To Cloak a CB Hop Link?

henhen10

Regular Member
Joined
Nov 18, 2010
Messages
419
Reaction score
86
hi I am building a new site now and I want some of the pages to be redirected to the hop link of CB.

How can I do it?
I want the domain to remain and that it won't change to the hop link ugly link.
From XXX.hop=XXX to mydomain.com/productname

I have looked for some guides online however they said that if I do it then clickbank won't be able to reward me for sales...

Any help with that?

Thanks in advance
smile.png


 
just go to where you bought your domain and do domain masking, thats what you are looking for, where you keep the domain name but on backend it will redirect to clickbank offer, and in this case you will get the commission if someone use your link.
 
You can cloak it by using "pretty link pro". It has free version as well. But free version doesn't have "redirection type: cloaked".
 
ok... but if I want only to create a page that will redirect?
btw I use wp for my site if it helps...
 
ok... but if I want only to create a page that will redirect?
btw I use wp for my site if it helps...

If you only want to create a page, then it's also easy use "iframe redirect code". Its just a 3/4 lines code.

This plugin is work for wp only.
 
If you only want to create a page, then it's also easy use "iframe redirect code". Its just a 3/4 lines code.

This plugin is work for wp only.

can u send me the code? and tell me where I need to out it please?
btw this way I won't lose the sales right?
 
At the simplest form using php(save it as myfile.php in the document root):

Code:
<?php

$arr = array('myproduct' => 'http://ugly.clickbank.com/link');
$qsr = @$_REQUEST['go'];
if(isset($arr[$qsr]))
 header('Location:'.$arr[$qsr]);
else
   die('incorrect link');
Call it like.. http://mydomain.com/myfile.php?go=myproduct
 
At the simplest form using php(save it as myfile.php in the document root):

Code:
<?php

$arr = array('myproduct' => 'http://ugly.clickbank.com/link');
$qsr = @$_REQUEST['go'];
if(isset($arr[$qsr]))
 header('Location:'.$arr[$qsr]);
else
   die('incorrect link');
Call it like.. http://mydomain.com/myfile.php?go=myproduct


ok got it .. it works but I want the domain to stay being my domain and not change to the product domain as it does
plus how can I know if I am gonna get paid or not for this?
 
Last edited:
That's possible using iframe / using curl. Look into it. If you don't get it, I will put the code for you when I have some free time :)
ok got it .. it works but I want the domain to stay being my domain and not change to the product domain as it does
plus how can I know if I am gonna get paid or not for this?
 
That's possible using iframe / using curl. Look into it. If you don't get it, I will put the code for you when I have some free time :)

can't find something like this :(

would be happy if u find those 5 minutes to post me the code ... thanks :)


btw this way I will still get paid by CB right? is it legit anyway?
 
It's not that obvious you can use Iframe and/or cURL to load the contents of the CB hop link.
1. Iframe - CB has a frame buster code, once you try iframing their url, it will break out of the window, and redirect you to the url itself.
2. cURL - CB blocks cURL requests, so, to make it happen (which is a bit messy), you need to use cURL with several useragents and good proxies.

besides, if you do get the cURL to work, the CB Hop link cookie wont get dropped in the user machine (browser) since you will be able to get the cookie using cURL as a variable, but you wont be able to store it in the user machine as cookies from CB domain (clickbank.net), but only as cookies from your domain - which is useless.
 
Well you can use a standard redirect on mydomain.com/productname that will send the customer on to the CB sales page which will let you at least use mydomain.com/productname for links. That's pretty much the standard CB hoplink cloak, but the customer will still end up on a page with the hoplink address in the browser's address bar.

If you wanted to have the customer land on a page that shows your mydomain.com/productname in the address bar you would need to create your own page that displays the sales page in a frame or iframe. That used to be a pretty common way to do what you want, unfortunately for you it was also a pretty common cookie stuffing technique so Clickbank now prohibits it in their TOS.

You could also create you're own sales page which includes you're own "Buy It Now" button. That used to be fairly common too, but to do it you need to build the link correctly to get credit for the sales you send. There used to be instructions in the FAQs on CB for how to format the link to the order page so you'll still get credit for the sale. If I remember correctly there is also a problem with how cookies are handled if you do it that way, so you'll only get credit if the complete the sale at the time you send them to the order page. If they leave and come back later there won't be a cookie set so you won't get the sale.
 
I had no idea about this. Thanks for the info dude :)
It's not that obvious you can use Iframe and/or cURL to load the contents of the CB hop link.
1. Iframe - CB has a frame buster code, once you try iframing their url, it will break out of the window, and redirect you to the url itself.
2. cURL - CB blocks cURL requests, so, to make it happen (which is a bit messy), you need to use cURL with several useragents and good proxies.

besides, if you do get the cURL to work, the CB Hop link cookie wont get dropped in the user machine (browser) since you will be able to get the cookie using cURL as a variable, but you wont be able to store it in the user machine as cookies from CB domain (clickbank.net), but only as cookies from your domain - which is useless.
 
Wow OK I had no idea and never thought it would be so complicated lol
I guess I will just do the normal cloak that gogol saidhttp://mydomain.com/myfile.php?go=my product
Hope it will still count my hops and sales :)
Thank you all!
 
as you are using Wordpress, you should use Pretty Link WordPress Plugin which is very good plugin... It will make your lik in yourdomain.com/anythingyouwant...
Code:
https://wordpress.org/plugins/pretty-link/
 
yup, you took the right decision ,

the normal cloak via the cpanel redirect is simple and efficient , rather than using Iframe or Curl ..

Best of luck in your cloaking.. :)
 
Back
Top