Wasp Download Guard for WooCommerce

Description

Wasp Download Guard checks, for free, whether the files your WooCommerce shop sells are protected as you intended. It requests each file the way a visitor who has not bought it would, shows what your server answered, and tells you what to do where a file is open.

All of it is free: no account, no limits, nothing locked.

Why check

WooCommerce gives each buyer a download link that checks the order. The file itself still has an address on your site, and whether a visitor who finds that address gets the file depends on where the file is kept and on the server:

  • A file picked from the Media Library stays in an ordinary uploads folder, which the server hands out to anyone.
  • A file uploaded in the product goes into the woocommerce_uploads folder. WooCommerce closes that folder with a .htaccess file. Apache reads it; nginx does not, so on nginx the folder is open until the server has a rule for it.
  • A move to another host, a change of server settings or a restore from a backup can drop that protection without anyone noticing.

What it does

  • Checks every file your products sell, in simple products, variations and drafts, and gives each file a status: open, closed, or the reason the answer did not tell.
  • Does not take a refusal on trust. A file counts as closed only if the server hands out an open test file of the same type. When a firewall or a password keeps out the site’s own requests, the file is not shown as protected.
  • Checks the woocommerce_uploads folder itself, and shows how to close it on nginx, Apache and LiteSpeed, with the rule for your site’s paths and a ready request to send to your host.
  • Moves open files into woocommerce_uploads. Every product that sells a file gets its new address and keeps the download’s ID, so buyers’ download links keep working. Each move is recorded and can be undone.
  • Rechecks a product’s files in the background after they change.
  • Adds a line to Site Health when files can be downloaded without buying them.

Everything is in WooCommerce Status Downloadable files, built from WooCommerce’s own status screens. Under the file lists, a folded section explains each status and note and what to do about it.

Safe for the shop

  • Nothing runs on page loads. A full check runs only when you start it, in steps of a few seconds, with a pause between requests, and stops on its own if the server keeps refusing. If you close the page, the check or a move goes on in the background through the Action Scheduler that ships with WooCommerce.
  • Tested with 10,000 products on a test site: every step stayed under five seconds.
  • Tested next to Wordfence, Solid Security, All-In-One Security and Sucuri with their strict settings: the results were the same as without them.
  • Compatible with WooCommerce’s order storage in its own tables (HPOS). Tested with WooCommerce 9.0 to 11.2, WordPress 6.5 to 7.1 and PHP 7.4 to 8.5.

Your data

The plugin only requests files from your own site. It sends nothing to other servers, sets no cookies and records nothing about visitors.

WP-CLI

  • wp download-guard check checks the files and prints the result.
  • wp download-guard move moves files from ordinary folders into the protected folder.
  • wp download-guard moves lists the moves, and wp download-guard undo <id> undoes a move.

Screenshots

Installation

  1. Install and activate the plugin. WooCommerce must be active.
  2. Open WooCommerce Status Downloadable files and click “Check the files you sell”.
  3. If the woocommerce_uploads folder is open, its section shows how to close it on your server, with a request to send to your host.
  4. If files in ordinary folders are open, tick them under Product files and move them into the protected folder.

FAQ

Is it free?

Yes. Every feature is in this plugin, with no account and no limits.

Will buyers’ download links keep working after a move?

Yes. A buyer’s link points at the download, not at the file. The move keeps each download’s ID and gives it the new file, so WooCommerce hands the file out from its new place. This is tested with the Force downloads method, which is WooCommerce’s default. With Redirect only, the plugin does not move files, because buyers would be sent to a folder that is closed to them.

Does the check slow down my site?

No. It does not run on page loads, and visitors do not wait for it. Each step lasts a few seconds and requests one file at a time, with a pause between requests.

Why does a file show “Refusal not confirmed”?

The server refused the file, but it also refused an open test file of the same type. That usually means a firewall, a security plugin or a password on the site keeps out the site’s own requests. The plugin then cannot tell whether a visitor gets the file, and says so instead of guessing. Open the file’s address in a private browser window to see for yourself.

Does it check files on other servers or in cloud storage?

No. Files on another server and files delivered by another plugin through a shortcode are listed, but not requested.

What does it change on my site?

Nothing until you move files. The check only reads. For a moment it writes small test files into its own folder, uploads/wasp-download-guard-for-woocommerce, and removes them and the folder right after. It never writes into woocommerce_uploads to check that folder.

What happens to the Media Library when a file moves?

The Media Library entry points at the file’s new place. Its preview no longer shows, because the protected folder is closed to browsers. A file shown on a page, as a featured image, in a product gallery or in the content, is not ticked for a move by default.

Can I undo a move?

Yes, in the Tasks section of the tab or with wp download-guard undo. The files go back to their old place, and each product gets back exactly the downloads it had before, unless someone has changed the product since.

Why does a download start working again after a move?

WooCommerce turns off a download whose file is outside its approved download directories, and its buyers get an error. The protected folder is approved, so the move turns such a download back on.

What happens when I delete the plugin?

Its settings, results and tasks are removed. Moved files stay in the protected folder, where the products now point, so buyers keep getting them.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Wasp Download Guard for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.2.0

  • First release.