<?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>woocommerce Archives ~ Carlos Guzman</title>
	<atom:link href="https://carlosguzman.dev/tag/woocommerce/feed/" rel="self" type="application/rss+xml" />
	<link>https://carlosguzman.dev/tag/woocommerce/</link>
	<description>Web developer</description>
	<lastBuildDate>Mon, 13 Oct 2025 15:02:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://carlosguzman.dev/wp-content/uploads/2019/06/favicon.ico</url>
	<title>woocommerce Archives ~ Carlos Guzman</title>
	<link>https://carlosguzman.dev/tag/woocommerce/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Prevent access to WooCommerce downloadable products in WPEngine</title>
		<link>https://carlosguzman.dev/prevent-access-to-woocommerce-downloadable-products-in-wpengine/</link>
					<comments>https://carlosguzman.dev/prevent-access-to-woocommerce-downloadable-products-in-wpengine/#respond</comments>
		
		<dc:creator><![CDATA[Carlos Guzmán]]></dc:creator>
		<pubDate>Fri, 08 Oct 2021 13:20:07 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[woocommerce]]></category>
		<category><![CDATA[wpengine]]></category>
		<guid isPermaLink="false">https://carlosguzman.dev/?p=215</guid>

					<description><![CDATA[<p>If you are using WPEngine, WooCommerce and you sell digital products, then you might have realized that your downloadable products are public to anyone. You can use redirect rules to protect access to WooCommerce downloadable products in WPEngine. But now it has a feature called web rules that allows you to block access in a [&#8230;]</p>
<p>The post <a href="https://carlosguzman.dev/prevent-access-to-woocommerce-downloadable-products-in-wpengine/">Prevent access to WooCommerce downloadable products in WPEngine</a> appeared first on <a href="https://carlosguzman.dev">Carlos Guzman</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you are using WPEngine, WooCommerce and you sell digital products, then you might have realized that your downloadable products are public to anyone. You can use <a href="https://anchor.host/protecting-static-files-with-php-script-and-wp-engine/" target="_blank" rel="noreferrer noopener">redirect rules to protect access</a> to WooCommerce downloadable products in WPEngine. But now it has a feature called <a href="https://wpengine.com/support/web-rules/" target="_blank" rel="noreferrer noopener">web rules</a> that allows you to block access in a similar way that .htaccess does.</p>



<p>First go to the dashboard of your site in WPEngine. Then click on the <strong>Web rules</strong> option at the bottom in the sidebar menu:</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="250" height="621" src="https://carlosguzman.dev/wp-content/uploads/2021/09/wpengine-site-sidebar-menu.jpg" alt="WPEngine site sidebar menu" class="wp-image-216" srcset="https://carlosguzman.dev/wp-content/uploads/2021/09/wpengine-site-sidebar-menu.jpg 250w, https://carlosguzman.dev/wp-content/uploads/2021/09/wpengine-site-sidebar-menu-121x300.jpg 121w" sizes="(max-width: 250px) 100vw, 250px" /></figure></div>



<p>Then you just need to create an access rule to block direct access to the WooCommerce downloadable products in WPEngine:</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="958" height="587" src="https://carlosguzman.dev/wp-content/uploads/2021/09/protect-woocommerce-downloadable-products-in-wpengine.jpg" alt="Protect WooCommerce downloadable products in wpengine" class="wp-image-219" srcset="https://carlosguzman.dev/wp-content/uploads/2021/09/protect-woocommerce-downloadable-products-in-wpengine.jpg 958w, https://carlosguzman.dev/wp-content/uploads/2021/09/protect-woocommerce-downloadable-products-in-wpengine-300x184.jpg 300w, https://carlosguzman.dev/wp-content/uploads/2021/09/protect-woocommerce-downloadable-products-in-wpengine-768x471.jpg 768w" sizes="(max-width: 958px) 100vw, 958px" /></figure></div>



<p>When you are creating the new rule, use the next configuration:</p>



<pre class="wp-block-preformatted">Order: 1 (or a lower value order than any rule that could interfere)<br>Action: Deny<br>IP: All<br>Condition type: URI<br>Condition Operator: Regex matches (~)<br>Condition value: wp-content/uploads/woocommerce_uploads/</pre>



<p>This configuration blocks the direct access to the files in the WooCommerce uploads folder. When your downloadable products is bought, then WooCommerce gives a link to the customer. Then the customer uses this link to download the product.</p>



<p>Do you need help with the configuration of your website? Don&#8217;t hesitate into <a href="https://www.webilop.com/hire-a-wordpress-developer-now/" target="_blank" rel="noreferrer noopener">hire me now</a>.</p>



<p>Now that you have protected your files, let&#8217;s see what is the &#8220;issue&#8221;. The summarized explanation is that WPEngine uses <a rel="noreferrer noopener" href="https://www.nginx.com/" target="_blank">Nginx</a> instead Apache as web server. WooCommerce creates an .htaccess file in its upload folder. Apache uses it to block the access to the content in the folder. However, the .htaccess file doesn&#8217;t work in Nginx. This web server works in another way and it is configured in other way. Unfortunately, WooCommerce doesn&#8217;t have a way to make this configuration and only the administrator of the web server can setup the configuration and block the access. Before it was possible to <a rel="noreferrer noopener" href="https://docs.easydigitaldownloads.com/article/683-protecting-file-downloads-on-wp-engine" target="_blank">prevent direct downloads in WPEngine</a> using redirect rules. <a href="https://wpengine.com/support/web-rules/" target="_blank" rel="noreferrer noopener">Now WPEngine has a feature named <strong>web rules</strong></a> that allows us to make this configuration and block the access to some sections in our website easily.</p>
<p>The post <a href="https://carlosguzman.dev/prevent-access-to-woocommerce-downloadable-products-in-wpengine/">Prevent access to WooCommerce downloadable products in WPEngine</a> appeared first on <a href="https://carlosguzman.dev">Carlos Guzman</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://carlosguzman.dev/prevent-access-to-woocommerce-downloadable-products-in-wpengine/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk
Database Caching 19/50 queries in 0.024 seconds using Disk

Served from: carlosguzman.dev @ 2026-06-28 15:31:18 by W3 Total Cache
-->