they way I'd do it is to have a specific landing page say
/af/entry.php and get your affiliates to use that which uses a js redirect to your homepage. On the entry.php file have a
<META NAME="Robots" CONTENT="No Index">
in the meta tag section
also in your robots.txt have
User-agent: *
Disallow: /af/
if you don't think you can expect all affiliates to use the correct landing page you have the option:
use .htaccess to look at the referer (if Google, msn, yahoo etc is in the domain) and has ref= in the landing page then rewrite to a cookie cleaning file which in turn loads the homepage again.
You may also wish to inform your affiliates that you intend to do this. They won't be happy as they'll say you created the problem.
I too used "unintentially" hijack merchant sites using an outbound affiliate url hiding redirect but omitted to robots.txt the folder. When I realised I admit I didn't quickly look for an alternative. But all new redirects are robots.txt'd.
I'm sure others will give a more robust solution.
LinkBack URL
About LinkBacks

Bookmarks