WooCommerce

How to Sell Digital Downloads with WooCommerce (Complete Setup Guide)

Set up WooCommerce digital downloads: virtual and downloadable products, the three file download methods, limits and expiry, approved directories and licence keys.

·13 min read
WooCommerce file download method setting with Force downloads selected, a download limit of 5 and a 30 day expiry

WooCommerce has no separate “digital downloads” extension to buy. Digital downloads are built into WooCommerce itself: you tick Virtual and Downloadable on a product, add a file, and WooCommerce gives the buyer a protected download link after the order. What you can add on top are paid or free extensions for licence keys, cloud file storage and watermarking, which we cover below. We checked every setting name and behaviour on this page against the official WooCommerce documentation and plugin source on 15 November 2026, when the current release on WordPress.org was WooCommerce 11.3.0.

If you landed here searching for “woocommerce digital downloads”, “woocommerce digital download extension” or “woocommerce digital downloads official documentation”, that is the short answer and the rest of this guide is the setup behind it. We walk through the product fields, the three file download methods, download limits and expiry, the approved download directories feature, licence keys, delivery emails and the problems store owners report most often.

Is there a WooCommerce digital downloads extension?

No official extension carries that name: we found no WooCommerce.com product listed under it. The feature itself is part of core WooCommerce, and the official guide for it is called the Digital/Downloadable Product Guide. The extensions people usually mean when they search for one are add-ons for specific gaps:

Need

What exists

Notes from the vendor pages we checked

Licence keys and activation limits

API Manager and Software Add-on from Kestrel

API Manager issues keys on purchase, sets activation limits per key and can deliver plugin and theme updates. The Software Add-on page itself says API Manager is the better fit in most cases.

Large files from cloud storage

Amazon S3 Storage from Kestrel

Serves downloads from Amazon S3 or Cloudflare R2 instead of your web server. Your normal download limits and expiry still apply.

Free licence keys

License Manager for WooCommerce on WordPress.org

Version 3.0.20, last updated 7 August 2026, 6,000+ active installs, rated 92 out of 100 from 147 ratings.

A different store engine

Easy Digital Downloads

A separate store plugin that replaces WooCommerce rather than extending it. 40,000+ active installs, version 3.7.3, updated 2 November 2026.

Prices on the vendor pages are shown in the visitor’s local currency and change often, so check them on the day you buy. Listing a tool here is not a recommendation to buy it: most stores selling ebooks, templates or PDFs never need any of these.

Is WooCommerce good for selling digital products?

Yes for most small and mid-sized digital stores, with three honest caveats. WooCommerce handles the product type, protected delivery, download limits, expiry, order emails and the customer download page without extra cost. You pay for the gaps: it has no licence key system, no built-in file watermarking and no tax automation for cross-border digital sales.

  • It fits well when you sell files such as ebooks, templates, fonts, audio, presets or software without activation checks.
  • It needs add-ons when you must issue and verify licence keys, deliver plugin updates or serve very large files.
  • It may be the wrong tool if you sell only digital products and want everything, including licensing, in one purpose-built plugin. That is the case Easy Digital Downloads was built for, and it is a fair choice.

How do I sell digital downloads with WooCommerce?

Follow these steps in order. Each setting name below matches the WooCommerce 11.3 admin screens and source we checked on 15 November 2026.

  1. Open WooCommerce > Settings > Products > Downloadable products and review the download settings (details in the next section).
  2. Check the Approved download directories tab next to it, so the folder that will hold your files is allowed.
  3. Go to Products > Add New and write the title and description as usual. Keep the product type as Simple product.
  4. In the Product data panel, tick Virtual (nothing ships) and Downloadable (this reveals the file fields).
  5. Add each file under Downloadable files: a File name the buyer sees and a File URL. Use the Choose file button from this screen to upload.
  6. Set Download limit and Download expiry, or leave both blank.
  7. Set the price, publish, then place a real test order and download the file as a customer would.

Step 7 is the one most people skip, and it is where most of the problems in the “common mistakes” section show up. Test as a logged-out buyer and as a logged-in customer, on the same server that will serve real orders.

Where should I upload the file?

Upload from the product edit screen, not from the Media Library. The official guide warns that files added through the media library are public. WooCommerce stores files added from the product screen in a woocommerce_uploads folder inside your uploads directory, and it adds an .htaccess file there, which the guide says does not guarantee protection on every server. A recent change goes further: in a pull request merged on 23 October 2026, files added with the Choose file button are hidden from the public media API, attachment pages and feeds. The pull request milestone was moved to 11.4.0, with a backport to 11.3 opened, so confirm what your own version does rather than assuming. Details are in pull request 70198.

You can also paste a URL to a file hosted elsewhere. Remote files work with the Force downloads method only if PHP has allow_url_fopen enabled, according to the official guide.

Which WooCommerce download settings should I use?

All store-wide delivery settings live in one place: WooCommerce > Settings > Products > Downloadable products. The labels and defaults below come from the plugin source and the Products settings documentation, checked on 15 November 2026.

Setting

Default

What it does

File download method

Force downloads

Chooses how files reach the buyer: Force downloads, X-Accel-Redirect/X-Sendfile or Redirect only.

Allow using redirect mode (insecure) as a last resort

Off

Lets WooCommerce fall back to Redirect only when the chosen method fails.

Downloads require login (under Access restriction)

Off

Buyers must be logged in to download. It does not apply to guest purchases.

Grant access to downloadable products after payment

On

Gives access when the order is Processing instead of waiting for Completed.

Open downloadable files in the browser

Off

Opens files in the browser instead of saving them. Does not work with redirects.

Append a unique string to filename for security

On

Adds a random string to new uploads so links are hard to guess. Existing files are not renamed.

Count partial downloads

On

Counts a download even if only part of the file was fetched. Repeat fetches within 30 minutes by default count once.

Two details differ from what many older guides say. There is no setting called “Purchases only”, and Redirect only is not the default: the default is Force downloads. If a tutorial tells you to switch away from a Redirect default, it is out of date.

A setting that matters for guest checkout: if you want an account for every buyer, the guide says to turn off guest checkout, because Downloads require login does not cover guests.

Force downloads, X-Accel-Redirect or Redirect only?

Use Force downloads unless you have a reason not to. It is the default, it hides the real file location and it works on any server. Switch to X-Accel-Redirect/X-Sendfile when large files time out and your host supports it. Choose Redirect only last, because anyone with the URL can get the file.

Method

How the file is served

Upside

Downside

Force downloads

PHP reads the file and sends it

Hides the file URL and prevents direct linking

Large files or weak servers can time out; remote files need allow_url_fopen

X-Accel-Redirect/X-Sendfile

WooCommerce authorises, then the web server sends the file

Better performance and larger files

Needs the module on the server; nginx needs extra configuration

Redirect only

The buyer is sent to the file URL

Works anywhere

The guide says anyone with the URL can access the file, logged in or not

The nginx rule people miss

WooCommerce writes a deny rule to .htaccess in the downloads folder, and nginx ignores .htaccess files. On nginx, the official nginx protection snippet says to add this rule for the X-Accel-Redirect/X-Sendfile and Force downloads methods:

# Block direct access to WooCommerce downloadable product files.
# Customers still get their files through WooCommerce download links.
location ~* /woocommerce_uploads/ {
    internal;
}

The guide says to place it before any other location block that uses a regular expression, such as a static-file rule, because nginx uses the first regex location that matches. Checked on 15 November 2026. After reloading nginx, open Tools > Site Health. Recent trunk code makes that check upload a temporary test file and request it, so a “can be accessed directly” result means your files are exposed.

What are approved download directories?

Approved download directories are a list of locations WooCommerce allows downloadable files to come from. The feature was introduced in WooCommerce 6.5 and, per the developer blog, has been on by default for new sites since then, so stores created before 6.5 may need to switch it on. Its aim is to stop a shop manager from pointing a product at a sensitive file or URL outside trusted locations. The full reference is the approved download directories documentation.

How it behaves, as the documentation describes it:

  • The list lives at WooCommerce > Settings > Products > Approved download directories.
  • WooCommerce tries to create woocommerce_uploads inside your uploads folder and lists it as approved by default.
  • Rules are stored as URLs and matched by scheme, so http://example.com/ and https://example.com/ are different entries. A rule written as //example.com covers both. A rule covers all of its subdirectories.
  • Only site administrators can change the list. When an administrator adds a file that no rule covers, a rule is added automatically. Other users cannot add files outside an approved location.
  • A Stop Enforcing Rules / Start Enforcing Rules button near the top turns the whole check off or on. There are also Enable All and Disable All buttons and a Bulk Edit menu.
  • Under WooCommerce > Status > Tools, Synchronize approved download directories scans your catalogue and adds uncovered paths as disabled rules, and Empty the approved download directories list deletes the list.
  • If a rule is disabled or deleted, affected files get a red asterisk beside the File URL field, and customers who already bought cannot download them until you fix it.

The rules check the saved URL only. With Force downloads, WooCommerce follows redirects within PHP limits, even to a destination that is not approved. Treat approved directories as a guard rail for who can add files, not as a lock on your whole server.

How do download limits and expiry work?

Both are per product, in the Downloadable files area. Download limit says “Leave blank for unlimited re-downloads”. Download expiry says “Enter the number of days before a download link expires, or leave blank”.

Product type

Sensible starting point

Why

Ebook, PDF, template

No limit, no expiry

Buyers re-download after changing devices, and support tickets cost more than a shared link

Software or plugin zip

A limit of 5 to 10 and no expiry, or a long expiry

Stops casual link sharing without locking out a buyer who reinstalls

Event material or time-limited pack

Expiry in days

Access should end when the event does

These are our suggestions, not WooCommerce defaults. Three behaviours worth knowing from the guide: editing a file row updates the links but leaves the expiry date and remaining download count as they were; access begins when the order is Completed unless you enabled access after payment; and the Regenerate download permissions action under Order actions deletes the existing permissions and their download logs before creating new ones. Use it to resend access, but expect the old counts to be gone.

How do I deliver licence keys?

WooCommerce core does not generate or verify licence keys. If your product is software that checks a key, you need an extension or a custom licence server. The list in the first table is a fair starting point. Whichever you choose, a working licensing setup should do these things:

  • Issue a unique key per order, not per product.
  • Track activations and enforce limits such as one site, five sites or unlimited.
  • Let customers deactivate a site so they can move a licence after a migration.
  • Handle renewals with a grace period so a late payment does not break a live site.
  • Expose a validation endpoint that your software calls, with sensible failure behaviour when your server is down.
  • Revoke on refund. Do not assume this happens automatically: test it with a refunded order.

A free plugin such as License Manager for WooCommerce is enough for a small catalogue. The point where custom work starts to make sense is a tiered scheme, such as single-site, agency and lifetime plans, tied to an update server and to Subscriptions renewals. That is the kind of build our team does, and for a store with a handful of products you probably should not buy it.

How do I protect files from sharing?

No download system can stop a determined buyer from sharing a file once they have it. What you can do is make casual sharing harder and traceable.

  • Keep Force downloads or X-Accel-Redirect on, so there is no public file URL.
  • Leave Append a unique string to filename on for new uploads.
  • Set a download limit for products that matter, as above.
  • Consider watermarking PDFs or images with the buyer’s details. Our guide to WooCommerce watermark plugins covers image watermarking; for PDFs, check that the plugin you pick supports them.
  • For video and audio people stream rather than save, use a streaming or CDN service with signed URLs. Plain downloads are the wrong delivery for that.

What should the order emails and My Account show?

Buyers expect the file link in the first email they get. WooCommerce lists downloads in its order emails once access is granted, and where an expiry is set the date comes from the product’s Download expiry value. With Grant access to downloadable products after payment on, links arrive with the Processing order email; with it off, they arrive with the Completed order email, so a manual fulfilment flow can leave buyers waiting.

  • Open WooCommerce > Settings > Emails and send yourself a test order email before launch.
  • Check that the From name and address are your brand, and that mail is sent through an SMTP service rather than the server mail function, so receipts do not land in spam.
  • If the default template buries the link, customise it. Our list of WooCommerce email customizer plugins covers the options.
  • Buyers can also find every file under My account > Downloads. Place a link to it on your thank-you page.

The thank-you page is also the best place for a next step, such as documentation or a related product. See our custom thank you page plugins comparison if you want to change it without code.

How should I handle tax on digital products?

Rules depend on where your buyer lives, not where you do. In the EU, B2C sales of digital services are generally taxed at the rate of the buyer’s country. Other regions have their own thresholds and rules, so ask an accountant before you launch. In WooCommerce, enable tax calculation under WooCommerce > Settings > Tax and add rates per region. Because no shipping address exists on a virtual order, make sure your tax address setting uses the billing address. For EU stores we compare the tools in WooCommerce EU VAT plugins.

Some sellers use a merchant of record service that becomes the legal seller and handles tax for them. That changes who owns the customer relationship and the payout flow, so check current compatibility with your WooCommerce version and gateway before committing.

Common mistakes people report

These are recurring problems from the WooCommerce documentation, GitHub issues and WordPress.org support threads. We paraphrase each one and link the source. Checked on 15 November 2026.

  • Uploading product files through the Media Library. The official guide says files added there are public. Upload from the product edit screen instead.
  • Trusting .htaccess on nginx. nginx ignores it, and a static-file location placed earlier in the config can serve files directly. The pull request that reworked the Site Health check describes both problems.
  • Stale download paths after a migration. In one WordPress.org thread, customers saw “Invalid Download Link” because stored file links still pointed at a staging address and a server path. Changing the download method did not help; a database search and replace did.
  • Switching off approved directory rules to make an error go away. A support thread reports that only Stop Enforcing Rules cleared a “downloads disabled” notice, and the support reply warned that this removes the protection. Fix the path or the directory rule instead.
  • Expecting Force downloads to work for every file and server. After WooCommerce 5.5 removed the automatic redirect fallback, some stores saw download errors. The developer advisory explains the fix: use the last-resort option and fix the server.
  • Selling HTML files. One GitHub issue reports “Invalid download link” for a downloadable .html file on a clean install. It was closed as not planned and maintainers could not reproduce it, but later comments still report it for logged-out buyers. Zipping the file was suggested as a workaround.

Why does my customer get “Invalid download link”?

Work through these checks in order, from the cheapest to the most invasive:

  1. Open the order and check the product’s download limit and expiry. A used-up limit or a past expiry is the most common cause.
  2. Look in WooCommerce > Settings > Products > Approved download directories for a red asterisk beside the file, and confirm the rule for that path is enabled.
  3. Check the File URL itself for a staging domain or an old server path, especially after a migration.
  4. Switch File download method temporarily to Redirect only to see whether the problem is the server method rather than the file. Switch back afterwards.
  5. Last, use Regenerate download permissions on the order. It resets the counts and removes the old log, so use it once you know why the link failed.

Frequently asked questions

Do I need a plugin to sell digital downloads in WooCommerce?

No. Virtual and downloadable products are part of core WooCommerce. You need extra plugins only for licence keys, cloud storage, watermarking or tax automation.

What is the default file download method?

Force downloads. Checked in the plugin source on 15 November 2026.

Can customers download while an order is still Processing?

Yes, if Grant access to downloadable products after payment is on, which is its default. Turn it off if you want to approve orders manually first.

How do I resend a download link?

Use the Regenerate download permissions action on the order, or raise the product limit. Regenerating removes the previous permissions and their logs.

Is there a size limit for downloadable files?

WooCommerce does not set one in its settings. Practical limits come from your server and the download method: the official guide notes that Force downloads can time out on large files, and that X-Accel-Redirect or cloud storage suit larger ones.

When do you need custom development?

Settings and a few extensions cover a store that sells fixed files at a fixed price. Custom work starts to pay when downloads depend on rules that no settings screen expresses. The cases we see most:

  • A licence server that your own software calls, with plan tiers and renewals tied to Subscriptions.
  • Customer-specific, expiring download URLs from private cloud storage.
  • Different download access for different customer groups or licence types.
  • Connecting orders to a helpdesk, a CRM or a community platform.

We are a WooCommerce development team, so we are biased toward building these. If your store sells a few ebooks or templates, the settings in this guide are enough, and you can set them up in an afternoon. If you want help with the harder cases, tell us about your project. If your concern is fake orders or card testing on a store with instant delivery, our guide to stopping bot attacks and fake orders is a good next read.

Launch checklist

  • Download settings reviewed: method, login, access after payment, unique string.
  • File folder listed under Approved download directories and enforcement left on.
  • nginx rule added and Site Health shows no direct access (nginx servers only).
  • Product created with Virtual and Downloadable ticked, files added from the product screen.
  • Download limit and expiry set deliberately.
  • A real order tested as a guest and as a logged-in customer.
  • Order emails checked for the link, sender and deliverability.
  • Tax settings confirmed with your accountant.
  • Licence flow, refunds and revocation tested if you sell software.

Sources checked on 15 November 2026: the WooCommerce Digital/Downloadable Product Guide, Products settings documentation, Approved Download Directories documentation, the WooCommerce developer blog and nginx snippet, the WooCommerce plugin source on GitHub, the vendor pages for each extension named, and the WordPress.org plugin API.

Part of the Wbcom Designs family

The all-in-one WordPress community stack

Also ours: wbcomdesigns.comvapvarun.combrndle.com