Cloak Affiliate Links for WooCommerce
Cloak Affiliate Links for WooCommerce
Description
The Cloak Affiliate Links for WooCommerce plugin allows you to mask all external links in your WooCommerce store.
For example, change this…
merchant.com/index.php?aff_id=123&product_id=456
… into this:
yoursite.com/go/123
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.
Installation
This section describes how to install the plugin and get it working.
- Upload the
woocommerce-cloak-affiliate-linksfolder to the/wp-content/plugins/directory. - Activate the Cloak Affiliate Links for WooCommerce plugin through the ‘Plugins’ menu in WordPress.
- Configure the plugin by going to Settings > WC Cloak Links.
Faq
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.
Reviews
Has problem with All Import data feed
By borgcollective on March 8, 2023
Plugin has problem with cloaking affiliate links when data feed imported through All Import plugin into woocommerce. All old product imports finished before cloaking addon installation does fine and when clickon button it leads you where it should. However , when cloaking addon is active while importing products through data feed ,addon just sets cloaking link instead affiliate link and on click doesn't lead anywhere... And if you disable addon , those cloaking links stay permanently on product unless you rerun your product feed again so it can update aff links. Other products which are imported before plugin activation and they were cloaked with new permalink after plugin deactivation returns original url.
Although , if you run WP All Import manually addon works flawlessly. It seams that only has problem with feeds scheduled with Cron jobs
Seo
By Karol (somrafka) on September 18, 2021
The plugin works the best!
By ilyapokrov on December 9, 2020
Great plugin
By kaudo on May 12, 2020
THANK YOU!
By Volvera (emresert86) on March 11, 2018
Awesome plugin!
By Joseph (xmsmmgrs) on November 4, 2017
Great plugin!
By val1975 on October 25, 2017
Easy to use
By pansotdev on September 3, 2016
Easy to use and nice plugin!
Easy and works
By gamedtoday on September 3, 2016
This is a plug and play plugin. Just added it through the installer right within wordpress and all my ref links are cloaked.. easy 🙂
Changelog
1.0.37 – 2025/09/15
- Changed plugin name to comply with WooCommerce’s trademark.
1.0.36 – 2024/12/30
- Fixed CSRF issue
1.0.35 – 2024/07/05
- Updated “tested up to” value
1.0.34 – 2024/03/18
- Updated permalink saving.
1.0.33 – 2023/11/10
- Updated “tested up to” value
- Declared WooCommerce HPOS compatibility
1.0.32 – 2023/05/02
- Added 2 public properties to
Wccalclass.
1.0.31 – 2023/04/20
- Updated “tested up to” values.
1.0.30 – 2022/10/28
- Updated “tested up to” values.
1.0.29 – 2021/08/09
- Added
wccal_product_url_permalinkfilter. - Added
wccal_product_url_qsfilter.
1.0.28 – 2021/07/13
- Forgot one small change in last update.
1.0.27 – 2021/07/13
- Updated to support WordPress 5.8.
- Updated to support WooCommerce 5.5.
1.0.26 – 2020/03/08
- Updated to support WordPress 5.7.
1.0.25 – 2020/12/01
- Updated to support WordPress 5.6.
1.0.24 – 2020/09/30
- Updated to support WooCommerce 4.5.
1.0.23 – 2020/07/27
- Updated to support WooCommerce 4.3.
1.0.22 – 2020/03/11
- Updated to support WooCommerce 4.0.
1.0.21 – 2019/11/12
- Updated readme.
1.0.20 – 2019/08/20
- Updated for WooCommerce 3.7
1.0.19 – 2019/05/06
- Updated readme.
1.0.18 – 2019/04/23
- Updated readme.
1.0.17 – 2019/02/19
- Updated readme.
1.0.16 – 2018/12/07
- Updated readme.
1.0.15 – 2018/07/30
- Disables cloaking of URLs during WooCommerce Product Exporting.
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()towc_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()tohome_url()to fix this error.
1.0.6 – 2017/02/16
- Added
$contextargument toget_product_url()method to support changes in WooCommerce 2.7.
1.0.5
- Just updating readme.
1.0.4
- Added user_trailingslashit() function to returned redirect URL. (#9588)
1.0.3
- Updated ‘tested up to’ tag.
1.0.2
- Added “static” to static methods to meet Strict Standards.
- Updated plugin information.
1.0.1
- Changed author name to “datafeedr.com”
- Flushed rewrite rules on plugin activation/deactivation.
1.0.0
- Initial release.

