![]() | | ||||||||
| | #1 |
| makemoney War Room Member Join Date: Mar 2009 Location: The Internet
Posts: 581
Thanks: 40
Thanked 101 Times in 28 Posts
|
Here is some PHP code that might be of use. Copy and paste this code into a notepad file, then name it index.php. Create a folder . . . something like "jump". So then you would have a link like: http://www.yourURL.com/jump/?at=boom This is a true affiliate cloaking script and not a work around (this will stop any link hijacking). You can obviously replace boom for "affID1" or something more relevant to you. You can also change the affiliate link URL for any offer you are sending traffic to. I just included a Clickbank URL for grins and giggles. ------------------------------------------------------------------ <?php if ( empty( $_GET['at'] ) ){ // this is the default affiliate link if no destination is specified $link = "http://affiliateID.vendorID.hop.clickbank.net/"; }else{ if ( $_GET['at'] == 'boom' ){ $link = "http://affiliateID.vendorID.hop.clickbank.net/"; } } header('Location: ' . $link ); ?> ------------------------------------------------------------------ |
|
Visit My Blog - MetaFever.com | |
| | |
| | #3 |
| Rumormill Marketing Join Date: Dec 2008 Location: Compton, CA
Posts: 76
Thanks: 0
Thanked 9 Times in 7 Posts
|
Here is a quick improvement to the code I just whipped up. PHP Code:
|
| | |
| | #4 |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
|
These aren't "cloaking" codes in the true sense of it - they are redirect codes. When used, these codes still eventually show your affiliate link in the browser address bar and aren't really "cloaked" They do obviously work for redirecting links though. Just my thoughts . . . |
| | |
| | |
| | #5 | |
| Rumormill Marketing Join Date: Dec 2008 Location: Compton, CA
Posts: 76
Thanks: 0
Thanked 9 Times in 7 Posts
| Quote:
If you wanted to make a true cloak, you can just take the url and chuck it into a frame, like most other affiliate link cloakers do. | |
| | |
![]() |
|
| Tags |
| cloaking, code, link, php |
| Thread Tools | |
| |
![]() |