WooCommerce Cloak Affiliate Links


The WooCommerce Cloak Affiliate Links plugin allows you to mask all external links in your WooCommerce store.

For example, change this…

… into this:

Configure the status code for the redirect to either 301, 302 or 307.

The plugin also adds a “Disallow” to your robots.txt file to prevent bots from following those external links.


  • Settings
  • Permalinks


This section describes how to install the plugin and get it working.

  1. Upload the woocommerce-cloak-affiliate-links folder to the /wp-content/plugins/ directory.
  2. Activate the WooCommerce Cloak Affiliate Links plugin through the ‘Plugins’ menu in WordPress.
  3. Configure the plugin by going to Settings > WC Cloak Links.


What redirect status should I use, 301, 302 or 307?

There’s a lot of debate about this. I would suggest Googling this and seeing which works best for you. The default status is 302.


Great plugin!

It is a rare plugin , does redirect all affiliate links in bulk ,each one to a custom redirect., automatically, you dont have to each one by one !!! .

Easy and works

This is a plug and play plugin. Just added it through the installer right within wordpress and all my ref links are cloaked.. easy 🙂

Read all 8 reviews

Contributors & Developers

“WooCommerce Cloak Affiliate Links” is open source software. The following people have contributed to this plugin.



1.0.14 – 2018/03/14

  • Declared required and supported WooCommerce version.

1.0.13 – 2018/03/13

  • Updated readme file.

1.0.12 – 2018/01/17

  • Added README file for GitHub.

1.0.11 – 2017/11/30

  • Fixed compatibility issue with WooZone.

1.0.10 – 2017/09/29

  • Fixed woocommerce_product_class() so that Wccal_Product_External is returned when the admin-ajax.php is requested from the frontend.

1.0.9 – 2017/05/01

  • Changed woocommerce_clean() to wc_clean().

1.0.8 – 2017/04/18

  • Fixed bug introduced with WooCommerce 3.0+ where affiliate link was being rewritten on product edit page in the WordPress Admin Area.

1.0.7 – 2017/03/20

  • Changed get_site_url() to home_url() to fix this error.

1.0.6 – 2017/02/16

  • Added $context argument to get_product_url() method to support changes in WooCommerce 2.7.


  • Just updating readme.


  • Added user_trailingslashit() function to returned redirect URL. (#9588)


  • Updated ‘tested up to’ tag.


  • Added “static” to static methods to meet Strict Standards.
  • Updated plugin information.


  • Changed author name to “datafeedr.com”
  • Flushed rewrite rules on plugin activation/deactivation.


  • Initial release.