PDA

View Full Version : Solution to Norton Blocking Affiliate URLs



dilipsam
01-30-2004, 04:20 AM
Hello Sista Catalyst and all others,

I think I have a solution. The model can be seen below. I hope all your servers support CGI.

I'm no longer part of Commission Junction but if you can associate your affiliate URL and replace it with the links in the CGI you may go ahead. Now, even when Norton is doing this after the URL redirects, you might as well consider suing Norton. Because it will read something like this

http://www.yourdomain.com/redirect.cgi?cjsite=Ebay

#!/usr/bin/perl

&parse;


if ($FORM{'cjsite'} eq 'Ebay') {

print "Location: http://www.cj.com/merchant.cgi?pid=567890&merchantid=replace your merchant id here\n\n";

}

if ($FORM{'cjsite'} eq 'Alibris') {

print "Location: http://www.cj.com/merchant.cgi?pid=567890&merchantid=replace your merchant id here\n\n";

}


exit;


sub LocalMethGet
{
return ($ENV{'REQUEST_METHOD'} eq "GET");
}

sub LocalMethPost
{
return ($ENV{'REQUEST_METHOD'} eq "POST");
}


Now save this file as redirect.cgi and set CHMOD to 775

I supposingly put the pid (refer code) as you static affiliate id and the merchant id is dynamic (I tink it's aid) (whew so long since i visited CJ). Best thing is to compare two affiliate urls (for example, Ebay and Alibris CJ Urls) provided at CJ.com and one id number is static (thats yours) and the other the merchant id. Whatever it is , try getting my point. Relpace wherever necessay: even the pid which is your static affiliate id. Please do refer CJ.com after you login there. Please replace with proper affiliate urls.

Now in your browser type http://www.yourdomain.com/redirect.cgi?cjsite=Ebay
Now put this in the browser and bingo everything works well since it gets redirected to the Ebay site thru your CJ URL.

I hope I have solved your problem: This message will not self destruct in 5 seconds: Mission Possible.

Regards,
Dilip Samuel