I'd love to hear some suggestions on what are the best ways to hide affiliate links on my wordpress blog. I've seen some use a wordpress plugin but if that plugin stops working in a later version of wordpress, it would mean a lot of recoding. What other options are there to hide the links?
Hey buddy i want to know that is it necessary to hide them , do affiliate link can harm our rankings and serp .
Create a subdomain (subdomain.yoursite.com) and upload a .php file to the root of that subdomain with the following code: <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://affiliatelink.com" ); ?> PHP: You then use the subdomain in the place of your aff link. For instance, if it's for a green tea offer, you might want to use the subdomain "greentea.yoursite.com". This will automatically forward that subdomain to your affiliate link. Obviously you'll want to change "http://affiliatelink.com" to your actual affiliate link. This way you can mask your links nice and neatly on your site. The user will never see them.
This is the one I use for in-content aff. links: Or you can create a folder and put Disallow in robots.txt for that folder. Then create a file for each affiliate link that contains a PHP redirect to your aff. link. The actual link would point to the file.
firefox with noscript addon will block the javascript and http meta redicrect, php redirect is better.