Forum Moderators: open
First example : [test.example.com...]
Second example : [test.example.com...]
Please click on the links above, and you will get what I meant.
May I know :
1) Which is a better way to cloak my affiliate link and serve better protection for affiliate link theft?
2) Which method is proven to be having a higher conversion rate and thus serve as a better way to maximize my earning as an affiliate ?
Thanks in advance for any suggestion made.
P/S : You can take a view at the source code of the FRAMED URL if you would like to, and let me know if that is vulnerable to any kind of risk..
[edited by: incrediBILL at 2:38 pm (utc) on June 3, 2009]
[edit reason] exemplified URLs [/edit]
Another way is using some sort of handshaking between 2 servers that is completely transparent to visitors. For instance if instead of a link I use a form with a post method, then the servers can communicate first and finally redirect headers are issued to the visitor.
Disadvantages with these approaches is that both ends need to have the encoding/decoding methods deployed, something hard to do unless you are really popular or you're the owner of both ends in some way.
But probably this is not the kind of cloaking that I was mentioning. Probably what I was trying to say is URL redirecting here. What I am trying to do, is just to cloak a product's affiliate link, say a ClickBank product.
The original affiliate link could be something like :
[myClickBankID.merchantA.example.net...]
and I am trying to cloak it using my website's URL , say :
http://www.example.com/recommends/merchantA/ [google.com] ... When people click on my link, they will be redirect to [myClickBankID.merchantA.example.net...] .
Also, I am trying to do it with the 2 methods (framed and unframed) above.
Between the two methods which I have posted in my initial post, which would be a better method ? Any suggestion please?
<?php
header('Location: h-t-tp://www.YourAffiliateURLHere.com/');
?>
AND
<?php
$url =
"YourFullAffiliateURL";
header("Location: $url");
exit();
?>
Can anyone please tell me what's the difference between the two codes?
btw the 2nd method with the $url var it should include the full url.
$url = 'http://www.example.com';
<?php
$url =
"http://www.example.com/recommends/affiliate1234/";
header("Location: $url = 'http://www.example.com/recommends/affiliate1234/'");
exit();
?>
Is that the correct way to do so ? I am sorry, but I am not a programming guy here, and I know nothing about php language.
Thanks in advance for your input :)
Note the difference in the bolded area part.
<?php
$url =
"YourFullAffiliateURL";
header("Location: $url");
exit();
?>
============================================================
<?php
$url =
"YourFullAffiliateURL";
header("Location: " . $url);
exit();
?>
So it's ok if I am going to use your code, right ?
ClickBank has their own encryption page, but after clicking on the link, and landed on the affiliate product's page, it will still show my affiliate name (?hop=ClickbankUsername), for example..
http://example.com/?hop=ClickbankUsername
Is there anyway that I can hide the (?hop=ClickbankUsername), using any php script ?
Thanks in advance
[edited by: incrediBILL at 11:35 am (utc) on June 19, 2009]
[edit reason] exemplified URLs [/edit]
<form name="some_form_name" action="http://www.example.com/some_link.htm" method="post"><input type="hidden" name="hop" value="ClickbankUsername" /><input type="submit" name="some_button" value="link to click" /></form>
As I mentioned earlier depends on the protocol that is in place. If you need to pass parameters by other means or to communicate with another server see the curl library and the fsockopen function for this.