Welcome to WebmasterWorld Guest from

Forum Moderators: eljefe3 & skibum

Message Too Old, No Replies

Affiliate Link Cloaking




10:25 pm on Mar 24, 2006 (gmt 0)

10+ Year Member

There are several threads here mentioning aff link cloaking but none that I could find that tells me how.

Just to make sure I'm talking about the right thing, I want to prevent aff hijacking by people viewing the source code.

Could someone point me to a source that tells how or recommend software that does this?


5:42 pm on Mar 25, 2006 (gmt 0)

10+ Year Member

I find the easiest way to do this is to send it to another page on your site that has a response.redirect in asp or using header( "Location in php. (I don't like javascript, so I have never done it with that, but it could be done.)
basically you would have your regular page with all your content and then when they click a link to xyz merchant they are sent somewhere like: www.yourdomain.com/sendtoxyz.php and then the code on that page (sendtoxyz.php) would be:

header( "Location: YourAffiliateLinkWithHTTPHere");

That is if you are using php of course. same thing applies for asp, make the affiliate links go to www.yourdomain.com/sendtoxyz.asp and then your page sendtoxyz.asp would simply be:



10:16 am on Mar 26, 2006 (gmt 0)

10+ Year Member

Remember to disallow sendtoxyz.php (or sendtoxyz.asp) in robots.txt


Shawn Collins

1:01 pm on Mar 28, 2006 (gmt 0)

10+ Year Member

I like .htaccess redirects, as I can easily manage all of my redirects for a site in one file.

Search for ".htaccess redirect" and there will be sites that explain how to set it up.


2:57 pm on Mar 29, 2006 (gmt 0)

10+ Year Member

Clicktracker from Focalmedia works great. It's a free cgi program and uses a MySql database.

Featured Threads

Hot Threads This Week

Hot Threads This Month