What do you think is the best code to hide affiliate links. Adwords has been giving me OK and Poor scores so I have blammed my crappy affiliate links instead of my possibly thin affiliate site
Here are the options I'm looking at, which would you recommend and are there pros/cons I should be aware of?
Meta Refresh
<html>
<head>
<title>Affiliate</title>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="refresh" content="1; url=http://www.affiliate.com/?ref=123" />
</head>
<body>
<p>You are being taken to the correct page.
<br />If the page does load after 5 seconds,
<a href="<A href="http://www.affiliate.com/?ref=123">click">http://www.affiliate.com/?ref=123">click here</a>.</p>
</body>
</html>
PHP 301
To use the PHP 301, just save it as affiliate.htm and upload it to /go/affiliate.htm
header("HTTP/1.1 301 Moved Permanently");
header("Location: http: affiliate link");
exit();
.htaccess 301
This code tells the server that /go/affiliate.htm should be redirected to affiliate.com/?ref=123. No extra files are needed, just upload this script and whenever you want to link to affiliate.com/?ref=123 just link to /go/affiliate.htm.
Redirect 301 /go/affiliate.htm http: affiliate link
JavaScript redirect
The code tells the browser that the page is located somewhere else and sends the browser there.
<script type="text/javascript">window.location="<A href="http://www.affiliate.com/?ref=123";</script">http://www.affiliate.com/?ref=123";</script>

Meta Refresh
<html>
<head>
<title>Affiliate</title>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="refresh" content="1; url=http://www.affiliate.com/?ref=123" />
</head>
<body>
<p>You are being taken to the correct page.
<br />If the page does load after 5 seconds,
<a href="<A href="http://www.affiliate.com/?ref=123">click">http://www.affiliate.com/?ref=123">click here</a>.</p>
</body>
</html>
PHP 301
To use the PHP 301, just save it as affiliate.htm and upload it to /go/affiliate.htm
header("HTTP/1.1 301 Moved Permanently");
header("Location: http: affiliate link");
exit();
.htaccess 301
This code tells the server that /go/affiliate.htm should be redirected to affiliate.com/?ref=123. No extra files are needed, just upload this script and whenever you want to link to affiliate.com/?ref=123 just link to /go/affiliate.htm.
Redirect 301 /go/affiliate.htm http: affiliate link
JavaScript redirect
The code tells the browser that the page is located somewhere else and sends the browser there.
<script type="text/javascript">window.location="<A href="http://www.affiliate.com/?ref=123";</script">http://www.affiliate.com/?ref=123";</script>