WooCommerce

Selling Digital Products with WooCommerce: Downloads, Licences and Delivery

Selling Digital Products with WooCommerce: Downloads, Licences and Delivery

Digital products are an attractive business. There’s no inventory to manage, no shipping costs and no limit on how many copies you can sell. Ebooks, design templates, stock photos, music, printables, software and course materials can all be sold online and delivered instantly.

WooCommerce handles digital products well out of the box, with downloadable products, secure delivery options and download limits. But there are details to get right: protecting files from unauthorised sharing, delivering large files reliably, handling digital tax rules and preventing fraud. Here’s how I set up digital product stores.

Virtual versus downloadable products

WooCommerce has two checkboxes on the product edit screen that are easy to confuse.

  • Virtual means the product doesn’t need shipping. It removes shipping fields from the product and, if the whole order is virtual, skips shipping at checkout. Services, memberships and digital products are virtual.
  • Downloadable means the customer receives files after purchase. You attach files to the product, and WooCommerce provides download links in the order confirmation and the customer’s account.

A typical digital product is both virtual and downloadable. A consultation booking might be virtual but not downloadable.

Setting up a downloadable product

On the product edit screen:

  1. Tick Virtual and Downloadable.
  2. Add files under Downloadable files, giving each a clear name and choosing the file from your media library or a URL.
  3. Set the Download limit: how many times each file can be downloaded per purchase. Leave blank for unlimited.
  4. Set the Download expiry: how many days the download links remain valid after purchase.

Download limits and expiry discourage sharing links publicly. Be reasonable, though. Customers sometimes need to download again on a new device, so a limit of five downloads and expiry after a year is often friendlier than one download within 24 hours.

Choose the right download method

Under WooCommerce, then Settings, then Products, then Downloadable products, you choose how files are delivered. This setting matters for both security and reliability.

Force downloads

Files are served through PHP, which hides the file’s real location. It’s secure, but serving large files through PHP uses server memory and can time out for big downloads.

X-Accel-Redirect or X-Sendfile

PHP checks permissions, then hands the actual file transfer to the web server, Nginx with X-Accel-Redirect or Apache with X-Sendfile. This combines security with efficient delivery and is the best option for most stores, especially with large files. It requires server support and configuration.

Redirect only

Customers are redirected to the file’s actual URL. It’s the most efficient but least secure, because the URL can be shared. Avoid it unless files are hosted on a service that generates signed, expiring URLs.

WooCommerce also lets you restrict downloads to logged-in customers and grant access to downloadable products only after payment is complete. Enable both for most stores.

Protect your files

By default, WooCommerce stores downloadable files in a protected folder inside uploads, called woocommerce_uploads. On Apache, WooCommerce adds an .htaccess file to block direct access. On Nginx, .htaccess files are ignored, so you must add a rule yourself:

The internal directive means the folder can only be served through an internal redirect, such as X-Accel-Redirect, not by direct requests. Without a rule like this on Nginx, anyone who guesses a file URL can download your products for free.

Test protection by copying a file’s direct URL and trying to open it in a private browser window. You should get an error.

Also:

  • Don’t upload product files to the normal media library, where they get public URLs.
  • Use unpredictable filenames for product files.
  • Keep backups of your product files somewhere separate.

Large files and external storage

For large files, like video courses, high-resolution asset packs or software, serving downloads from your web server can strain resources and bandwidth. Options include:

  • Cloud storage with signed URLs. Files are stored in object storage, and plugins generate temporary, signed download links after purchase. Downloads come from the storage provider’s infrastructure, not your server.
  • A CDN for downloads, again with signed or expiring URLs.
  • Splitting large products into smaller files, so failed downloads can be resumed more easily.

Licence keys for software

If you sell software, plugins, themes or other products that require activation, you’ll need licence key management. Plugins can generate unique keys on purchase, display them in emails and the customer account, limit the number of activations and handle renewals for annual licences.

Think through:

  • How many sites or devices each licence covers.
  • Whether licences expire, and what happens after expiry: updates stop, or the product stops working.
  • How customers deactivate a licence on one site to move it to another.
  • How updates are delivered securely to licensed customers.

Digital products and tax

Tax rules for digital products can be complex and vary by country.

  • The European Union taxes digital services, including many downloadable products, based on the customer’s location, not the seller’s. Sellers outside the EU may also need to register and collect VAT for EU customers, often through the One Stop Shop scheme.
  • The United Kingdom has similar rules for digital services sold to UK consumers.
  • Many other countries have introduced tax on digital services sold by foreign businesses.
  • US states vary in whether and how they tax digital goods.

For EU VAT on digital goods, you typically need to collect evidence of the customer’s location, such as billing address and IP address, and charge the correct rate for their country. Tax plugins and services can automate rate calculation and evidence collection.

This isn’t an area to guess. Talk to an accountant familiar with digital sales in your markets.

Simplify checkout for digital products

Digital customers don’t need shipping fields. If an order contains only virtual products, WooCommerce automatically hides shipping. You can often remove more fields too, such as company name and phone number, depending on your tax requirements.

Some stores allow guest checkout for digital products; others require accounts so customers can always return to their downloads. Requiring an account adds friction but reduces support requests from customers who’ve lost their download emails. A middle ground is to create an account automatically and email login details.

Instant delivery depends on order status

Customers expect digital products immediately. WooCommerce grants download access when orders reach Processing or Completed, depending on settings. By default, orders containing only virtual downloadable products move straight to Completed after successful payment.

If customers report missing downloads, check:

  • The order status. Orders stuck as pending or on-hold don’t grant access.
  • Payment gateway webhooks, which update order statuses after payment.
  • Email delivery, if customers rely on the email link.

Preventing fraud

Digital products are attractive to fraudsters, because they can be resold instantly with no shipping address to trace. Watch for:

  • Multiple orders with different cards from the same IP address.
  • Mismatched billing countries and IP locations.
  • Unusually large orders from new customers.

Use your payment gateway’s fraud tools, enable strong customer authentication where available and consider manual review for high-value orders. Chargebacks for digital products are costly and hard to dispute.

Refunds

Digital products can’t be returned in the usual sense. Decide on a clear refund policy and display it before purchase. In some regions, consumers have a right to cancel digital purchases within a set period unless they explicitly agree to immediate delivery and acknowledge losing that right. Check the rules for your markets and adapt your checkout if needed.

Customer experience after purchase

  • Send a clear confirmation email with download links and instructions.
  • Make downloads easy to find in My Account.
  • Provide support documentation for using the product.
  • Notify customers when you release updated versions, and make updates available through their account.

Frequently asked questions

Can WooCommerce sell digital products without extra plugins?

Yes. Downloadable and virtual products, download limits and secure delivery are built into WooCommerce. Plugins add features like licence keys, external storage and advanced tax handling.

How do I stop people sharing download links?

Restrict downloads to logged-in customers, set download limits and expiry, use secure delivery methods and protect the files folder at the server level. You can’t prevent all sharing, but you can make it much harder.

What’s the best download method?

X-Accel-Redirect on Nginx or X-Sendfile on Apache, where supported. It keeps files secure while letting the web server handle transfers efficiently.

Do I need to charge VAT on digital products?

Possibly, depending on where you and your customers are located. Rules for digital sales are strict in many regions. Get professional advice for your situation.

Final thoughts

Selling digital products with WooCommerce can be simple, profitable and scalable. Set products as virtual and downloadable, choose a secure and efficient download method, protect your files at the server level, handle licences and taxes properly and make the post-purchase experience smooth. Get those foundations right, and you can focus on creating products while WooCommerce handles delivery.