<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; link cloaking plugins for wordpress</title>
	<atom:link href="http://www.wpwife.com/category/link-cloaking-plugins-for-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Cloak Affiliate Links on Your WordPress Site</title>
		<link>http://www.wpwife.com/tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site</link>
		<comments>http://www.wpwife.com/tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site#comments</comments>
		<pubDate>Thu, 13 Jul 2023 19:34:34 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[affiliate link management plugins]]></category>
		<category><![CDATA[cloak links in wordpress]]></category>
		<category><![CDATA[link cloaking plugins for wordpress]]></category>
		<category><![CDATA[link shortener plugins for WordPress]]></category>
		<category><![CDATA[pretty links]]></category>
		<category><![CDATA[thirstyaffiliates]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=27907</guid>
		<description><![CDATA[
<p>Are you looking for a way to cloak affiliate links on your WordPress site? Cloaking your affiliate links in WordPress provides clean and easy-to-read links, which can increase the likelihood of clicks and conversions. It can also increase user trust. In this article, we will&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/">How to Cloak Affiliate Links on Your WordPress Site</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking for a way to cloak affiliate links on your WordPress site?</p>



<p>Cloaking your affiliate links in WordPress provides clean and easy-to-read links, which can increase the likelihood of clicks and conversions. It can also increase user trust.</p>



<p>In this article, we will show you how to easily cloak affiliate links in WordPress.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/how-to-cloak-affiliate-links-on-your-wordpress-site-og.png" alt="Cloaking affiliate links in WordPress" class="wp-image-192561" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/how-to-cloak-affiliate-links-on-your-wordpress-site-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/how-to-cloak-affiliate-links-on-your-wordpress-site-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">What Is Affiliate Link Cloaking, and Why Do You Need It?</h4>



<p>Link cloaking is a technique used to make long <a href="https://www.wpbeginner.com/plugins/how-to-add-affiliate-links-in-wordpress-with-thirstyaffiliates/" title="How to Add Affiliate Links in WordPress with ThirstyAffiliates">affiliate links</a> into shorter and branded links on your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>.</p>



<p>Often, affiliate links are lengthy, hard to remember, and show your affiliate username or ID like this:</p>



<p><em>http://www.affiliatesite.com/products/?product_id=123&amp;affiliate=123</em></p>



<p>With link cloaking, you can shorten your ugly affiliate links into branded URLs like this:</p>



<p><em>http://www.yoursite.com/refer/productname</em></p>



<p>This can make your links look more trustworthy and professional to your audience, encouraging more clicks.</p>



<p>If you use affiliate links to <a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" title="Proven Ways to Make Money Online Blogging with WordPress">make money from your WordPress blog</a>, then you should cloak links, as doing this can increase your click-through rate and conversions.</p>



<p>Many link-cloaking plugins will also help you measure the performance of your <a href="https://www.wpbeginner.com/beginners-guide/affiliate-marketing-guide-for-beginners-step-by-step/" title="The Ultimate Affiliate Marketing Guide for Beginners – Step by Step">affiliate marketing</a> strategies and optimize them for better results.</p>



<p>Cloaking affiliate links also adds an additional layer of security by masking the actual affiliate URL. This can protect your affiliate accounts and earnings from fraud or theft.</p>



<p>This can also help prevent your links from being blocked by social media sites or search engines,<a href="https://www.wpbeginner.com/beginners-guide/ultimate-wordpress-seo-guide-for-beginners-step-by-step/" title="Ultimate WordPress SEO Guide for Beginners (Step by Step)"> increasing the search visibility</a> of your affiliate content.</p>



<p>Having said that, let&#8217;s see how you can easily cloak affiliate links on your WordPress website, step by step.</p>



<h4 class="wp-block-heading">How to Cloak Affiliate Links in WordPress</h4>



<p>There are many link-cloaking plugins that you can use in WordPress, including <a href="https://www.wpbeginner.com/wp-tutorials/pretty-links-vs-thirstyaffiliates-which-is-right-for-your-site/" title="Pretty Links vs ThirstyAffiliates: Which is Right for Your Site?">Pretty Links and Thirsty Affiliates</a>. Both plugins are great, but we will use Pretty Links for this tutorial since it&#8217;s a little more beginner-friendly for this use case.</p>



<p>You can easily cloak affiliate links in WordPress using Pretty Links. It is one of the <a href="https://www.wpbeginner.com/showcase/10-best-affiliate-marketing-tools-and-plugins-for-wordpress/" title="Best Affiliate Marketing Tools and Plugins for WordPress">best affiliate marketing tools for WordPress</a> that lets you add, manage, and cloak affiliate links.</p>



<p><strong>Install and Activate Pretty Links</strong></p>



<p>First, you need to install and activate the <a href="https://www.wpbeginner.com/deals/pretty-links-pro-coupon/" title="Pretty Links Pro Coupon">Pretty Links</a> plugin. For detailed instructions, please see our beginner&#8217;s guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> Pretty Links also has a <a href="https://wordpress.org/plugins/pretty-link/"  rel="noopener nofollow" title="Pretty Links Free Plugin">free version</a> that can cloak links. However, we will be using the Pro version in the tutorial to unlock more features.</p>

</div>


<p><strong>Create Your Cloaked Link</strong></p>



<p>Upon activation, you need to head over to the <strong>Pretty Links » Add New</strong> page from the WordPress admin sidebar to create an affiliate link.</p>



<p>Once you are there, you can start by typing a name for your link into the &#8216;Add Title&#8217; option.</p>



<p>After that, you must select a link type from the &#8216;Redirection&#8217; dropdown menu to create short and branded links for your affiliate program. </p>



<p>If you choose &#8216;Cloaked&#8217;, then the target URL will be hidden in your user&#8217;s browser, and they will only see your cloaked link. Some affiliate programs don&#8217;t allow this, so you will need to check first.</p>



<p>Another option is &#8216;307 Temporary&#8217;. It will replace the original URL with your new affiliate link and tell search engines that this link may change in the future. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="364" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-cloaked-as-redirection-option-1.png" alt="Add a title for your affiliate link and choose the Cloaked option as the redirection type" class="wp-image-192758" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-cloaked-as-redirection-option-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-cloaked-as-redirection-option-1-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, simply copy and paste your affiliate link into the &#8216;Target URL&#8217; field.</p>



<p>Once you have done that, type the <a href="https://www.wpbeginner.com/glossary/slug/" title="Slug">slug</a> you want to use for your cloaked link into the &#8216;Pretty Link&#8217; field. </p>



<p>For example, if you want your cloaked link to be like the example below, then you will need to type the &#8216;/refer/bluetooth-speakers&#8217; text into the &#8216;Pretty Link&#8217; field. You will then get a link like this:</p>



<p><em>www.example.com/refer/bluetooth-speakers</em></p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="286" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-cloaked-affiliate-link.png" alt="Add cloaked affiliate link" class="wp-image-192519" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-cloaked-affiliate-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/add-cloaked-affiliate-link-300x126.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Choose Attributes for Your Cloaked Link</strong></p>



<p>After that, simply switch to the &#8216;Advanced&#8217; tab from the sidebar on the left. </p>



<p>From here, you can add different attributes to your affiliate link by checking the box next to these options.</p>



<p>For instance, if you want to add a <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-nofollow-links-in-wordpress/" title="How to Add Nofollow Links in WordPress (Simple Guide for Beginners)">nofollow attribute</a> to the external link, then simply check the box next to &#8216;No Follow&#8217;. This means that search engines won&#8217;t pass on any link authority to the site you are linking to. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="289" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-link-attributes.png" alt="Add attributes to the cloaked affiliate link" class="wp-image-192526" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-link-attributes.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/add-link-attributes-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also check the &#8216;Sponsored&#8217; box to tell search engines that your link is a paid advertisement. </p>



<p>Plus, checking the &#8216;Parameter Forwarding&#8217; box can be handy if you want to pass a coupon code or customer ID to your cloaked link. </p>



<p>It&#8217;s also a good idea to check the box next to &#8216;Tracking&#8217; so that you can view your affiliate link performance in the Pretty Links reports. </p>



<p><strong>Configure Pro Settings for Your Cloaked Link</strong></p>



<p>Once you have done that, you need to switch to the &#8216;Pro&#8217; tab from the sidebar on the left. Now, you can set an expiry date for the affiliate link by checking the &#8216;Expire&#8217; option.</p>



<p>This will expand a tab on your screen where you can set an expiry date for the link after a specific date or number of link clicks.</p>



<p>For example, if you choose the &#8216;Clicks&#8217; option from the &#8216;Expire After&#8217; dropdown menu and type 5 into the &#8216;Clicks&#8217; field, then your affiliate link will immediately expire once 5 visitors have clicked on the link.</p>



<p>You can also type a URL for the expired redirect into the &#8216;URL&#8217; field. This will be the link that users will be redirected to if they click on the expired affiliate link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="375" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/set-expiry-date-for-link.png" alt="Set an expiry date for the cloaked affiliate link" class="wp-image-192533" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/set-expiry-date-for-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/set-expiry-date-for-link-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can type the keywords that you would like to be replaced with your affiliate link into the &#8216;Keywords&#8217; field.</p>



<p>This means that whenever the keyword you choose is written in your <a href="https://www.wpbeginner.com/beginners-guide/what-is-the-difference-between-posts-vs-pages-in-wordpress/" title="What is the Difference Between Posts vs. Pages in WordPress">WordPress post or page</a>, the plugin will automatically add its affiliate link to the keyword.</p>



<p>You can also easily replace another URL with your affiliate link by typing it into the &#8216;URL Replacements&#8217; field.</p>



<p>Now, whenever Pretty Links finds this URL on your website, it will replace it with the cloaked link. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="227" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-keyword.png" alt="Choose a keyword and replacement URL" class="wp-image-192539" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-keyword.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-keyword-300x100.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you are done, simply click the &#8216;Update&#8217; button in the Publish section to store your changes.</p>



<p>After that, you need to click the &#8216;Publish&#8217; button in the same section to publish your cloaked affiliate link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="271" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/save-affiliate-link.png" alt="Save affiliate link" class="wp-image-192541" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/save-affiliate-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/save-affiliate-link-300x120.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Add Your Cloaked Link to a WordPress Post or Page</strong></p>



<p>Now, you can visit a WordPress post or page where you want to add the cloaked affiliate link.</p>



<p>Once you are there, simply select the text that you want to link on top of and then click the &#8216;Pretty Links&#8217; icon in the block toolbar at the top.</p>



<p>This will open up a link prompt on your screen, where you can search for the cloaked affiliate link using its title or the link itself.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-affiliate-link-in-block-editor.png" alt="Add affiliate link in the block editor" class="wp-image-192549" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-affiliate-link-in-block-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/add-affiliate-link-in-block-editor-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Upon adding the link, just click the &#8216;Publish&#8217; or &#8216;Update&#8217; button at the top to store your settings.</p>



<p>Now, you can visit your website and click on the affiliate link. You will now see the cloaked URL redirecting you to the affiliate product page.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/preview-for-cloaked-affiliate-link.jpg" alt="Preview for cloaked links" class="wp-image-192759" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/preview-for-cloaked-affiliate-link.jpg 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/preview-for-cloaked-affiliate-link-300x161.jpg 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this article helped you learn how to easily cloak affiliate links in WordPress. You may also want to see our tutorial on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-an-affiliate-product-box-no-coding-required/" title="How to Create an Affiliate Product Box (No Coding Required)">how to create an affiliate product box in WordPress</a> and our expert picks for the <a href="https://www.wpbeginner.com/showcase/best-wordpress-themes-for-affiliate-marketing/" title="Best WordPress Themes for Affiliate Marketing">best WordPress themes for affiliate marketing</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/">How to Cloak Affiliate Links on Your WordPress Site</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
