Forum Moderators: Robert Charlton & goodroi
1. I create a file "aff_store.html"
2. add to this file meta noindex, nofollow
3. Link to www.example.com/aff_store.html
4. add to this link a nofollow
5. set up a 301 in htaccess from www.example.com/aff_store.html to the actual aff link
I do not know if this is full proof...
Sure. Just run a redirect off your own site.
Run the url through a redirector parked in your cgi-bin - and then mark cgi-bin off limits in your robots.txt.
The real benefit though, is that the redirector script can also count the urls for you as people click them. Thats mega data to have...
Here is a simple one in perl:
[perl]
#!/usr/bin/perl
# code a url with [ThisProgramURL...]
$FORM{'url'} = "http://www.yourdomain.com/";
$logs= "/mypath/mydomain/mylogdirectory/cgi-bin/";
$b= time;
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
if (length($buffer) < 5) {
$buffer = $ENV{QUERY_STRING};
}
if ($buffer =~ /(.*)\&url\=http(.*)/i) {
$buffer=$1;
$FORM{'url'}="http" . $2;
}
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$FORM{$name} = $value;
}
if ($buffer =~ /(.*)\&url\=http(.*)/i) {
$FORM{'url'}="http" . $2;
}
($tsec,$tmin,$thour,$tmday,$tmon,$tyear,$twday,$tyday) = localtime(time);
$tmon++;
$tyear =$tyear+1900 if $tyear <1900;
$tmday = "0" . $tmday if $tmday <10;
$tmon = "0" . $tmon if $tmon <10;
#write the click to a log file:
open(LOG,">>$logs/redirect-log-$tmon-$tmday-$tyear.log");
print LOG qq"$ENV{'REMOTE_ADDR'}\¦$FORM{'url'}\¦$b\¦$FORM{'note'}¦\n";
close(LOG);
print "Location: $FORM{'url'}\n\n\n";
1;
[/perl]
I guess you could also use robots.txt too keep the google away from any page that has your affiliate code / 301 redirect.
There was also a php based click tracking solution I found that actaully has a legit function other than to mask the link.
So making the change is not so difficult but how will Google and the other SE's look at it? Does anyone have an opinion even?
Masking affiliate links isn't necessary with the former and isn't likely to disguise the latter.
intrinsically useful site with affiliate links
Even so... it's still nice to mask. [ the reasons are a plenty - no need to explain ].