Forum Moderators: phranque
Is there a way to disguise your affiliate link by using .htaccess?
I've heard of using a 302 redirect, is this acceptable, and if so, how?
I wouldn't want to cloak the website just hide my affiliate number, i.e. if affiliate link is example.com?affiliate_number=12345 could I just use a link like example.com and have a RewriteRule add my affiliate number? Would this stop commission theft?
So far I have read about javascript solutions to hide your affiliate number directly in the scripts but many of these programs look these javascript workarounds, and since it would be easier to hide it in an htaccess file I was wondering if it was possible.
Example, my affiliate number is 12345, so my webpage link looks like this,
ht*p://example.com/affiliate_link
and when they click the link, the Rewriterule changes it to something like this,
ht*p://affiliate_site.com?affiliate_number=12345
I was just curious how to do it and if it will even work, sometype of 302 redirect I think.
Set up your affiliate link to some dummy page on your site, then use .htaccess to 'redirect 302 dummy_page.htm true_affiliate_link.htm' (not sure of the exact format)
But you would have to do this for each affiliate link separately.
Here are some more resources to read:
[affiliatetip.com...]
For more info put ".htaccess" + affiliate in google.
I am trying to figure it out on my own and not having much success finding anything written in plain english.. Perhaps after I figure everything out, I will write an article on it :)
Hope this help!
Kasie Morgan
Best regards,
Kasie Morgan
You can use whatever means you want to try to disquise your affiliate id. It wont make a difference if the visitor has a spyware program "hijacking" your code.
Why? Correct me if I am wrong, but your site has to send your actual url (including your code) to the visitors browser. Otherwise, the visitor's browser has no clue where to go. Therefore, the spyware will hijack your code.
Unless (maybe), one could write a script that would load the affiliate site without sending the url at all. But even then, wouldn't the spyware hijack the first link the visitor clicked at the affiliate site?
I could be completely off base on this, so take it for what it is worth. Just my 2 cents.
Redirect /afflink1 [exampleafflink.com?afid=12345...]
Redirect /afflink2 [someotherexampleafflink.com?afid=12345...]
Then you would have links to your site:
[examplemysite.com...]
When would redirect to:
[exampleafflink.com?afid=12345...]
Easy 'nuff.
I think for me the big problem is disguising the link to get the click in the first place. Once you get the click, cookies are stored for a certain amount of time anyhow.
However, the biggest problem I am having is with ClickBank.
(my opinion. Not 100% sure if it is happening all the time)
I send the visitor and they can easily change the affiliate id to whomever and the last affiliate id to send the visitor gets the commission.
Even if I use a 301 redirect.
But, say with #*$!, I don't have to worry. They have lifetime cookies.
I have been looking at some software that encrypts the cookie on the person's system. This way they don't even have to click on my link in order for me to get commission. Pretty cool and great if the person leaves my site and trys to go to the merchant directly!
Best regards,
Kasie Morgan
I send the visitor and they can easily change the affiliate id to whomever and the last affiliate id to send the visitor gets the commission.Even if I use a 301 redirect.
Would you mind explaining this?
If you use a REDIRECT, there is no affiliate ID data passed except yours.
The affiliate ID is buried on your server side, how in the heck would they replace it unless the machine is infected and all page transitions are trapped and URLS are modified, but not alot you can do to stop an infected computer.
redirect 301 /copy-writing [hop.clickbank.net...]
Should I be doing it another way?
Best regards,
Kasie Morgan
The affiliate ID is buried on your server side, how in the heck would they replace it unless the machine is infected and all page transitions are trapped and URLS are modified, but not alot you can do to stop an infected computer.
I'm not sure exactly how these malwares work, but I guess they could check the final destination the surfer arrived at and refresh the browser to the same site, just with a different affiliate id. The last aff id stays in the cookie, so the cheaters win.
If this is true then there is no way to stop them. If there is no way to stop them then all these companies selling programs to stop the malware don't work and they are no worse than the malware companies by selling useless software.
This brings me back to the 302's. If you could trick the browser into loading the affiliates page while keeping your url in the address bar then the malware wouldn't know that you are actually at the affiliates site possibly.