doorpay

Download security

How to Protect WooCommerce Digital Downloads from Unauthorized Access

Keep payment confirmation, customer permission and file storage working together. Test the boundaries rather than trusting a checkbox.

Doorpay guides9 min readSources checked
Three separate responsibilities connect confirmed payment, WooCommerce download authorization and protected file delivery without exposing the original file.
Original conceptual illustration. Doorpay supplies integration software; the connected provider supplies payment services.

Define the access you actually need to protect

To protect WooCommerce digital downloads, protect both the permission check and the underlying file. A customer-facing purchase button is not a barrier if the same file remains available at a public URL.

Think in three layers: confirm the intended payment, authorize the purchaser’s file access, then deliver through the configured storage/server route. A failure in any layer can either expose content or block a legitimate customer.

Doorpay’s supplied 1.5.7 documentation describes provider-payment verification followed by WooCommerce fulfillment. It connects your own approved Paddle or Lemon Squeezy account; it does not receive, hold, route or settle funds and is not a file-hosting security service.

Set realistic goals. You can restrict unauthorized access to your hosted original and control download entitlements. You cannot guarantee that a legitimate buyer will never copy, photograph or redistribute material they have already obtained.

If the store is still being configured, use the digital-download setup guide for the product and customer journey, then verify the storage boundaries described here.

Choose a suitable delivery method

Review WooCommerce → Settings → Products → Downloadable products. The official product settings guide distinguishes these methods:

Method Delivery approach What to verify
Force downloads PHP handles the authorized file response. File size, resources, storage reachability and direct-origin protection.
X-Accel-Redirect / X-Sendfile A supported web-server mechanism delivers the file. Hosting support and the correct protected internal delivery configuration.
Redirect only (insecure) The customer is sent to the underlying file URL. A plain public destination can be reused without the store’s permission check.

Select the method that your actual hosting and storage can support. A faster method configured incorrectly is not a protection improvement. A secure path that times out on every large purchase also needs repair.

If a fallback redirects to a public origin, it can undermine the intended access boundary. Investigate the specific transport failure rather than enabling an insecure fallback as a permanent availability fix.

Keep the original file behind the intended boundary

The WooCommerce downloadable-product guide warns that ordinary WordPress Media Library URLs are public. Uploading from the product editor uses WooCommerce’s download storage, but direct-URL protection still depends on server configuration.

Do not assume that a product marked Downloadable, an obscure filename, a closed directory listing or an unlinked storage path proves confidentiality. Test the actual file URL while logged out. The intended result for a protected origin is denial of direct access while the supported authorized delivery continues to work.

Inventory the locations used by active products before moving files. An origin change can restore protection but break legitimate historical links if the product references and supported delivery path are not updated carefully.

For an existing availability problem, use the missing-download troubleshooting guide alongside this boundary review. Restoring access and exposing the origin are different outcomes.

Match the protection to Apache or NGINX

Ask your host which server actually serves download URLs, including any reverse proxy or CDN. A hosting dashboard’s PHP setting does not identify every layer that can deliver a file.

Apache’s .htaccess documentation explains that permitted overrides depend on server configuration. The presence of an .htaccess file does not by itself prove its rules are honored.

NGINX does not use Apache .htaccess rules. Use the WooCommerce NGINX upload-protection guidance with your host to review the active server block, download method and internal file route. Do not paste a universal rule into an unknown production configuration.

After an authorized server change, test both paths: a direct unauthorized request should remain blocked, and a valid WooCommerce download should complete. Keep a rollback plan and compare application/server logs when a legitimate request is denied.

Approve trusted locations without confusing approval with privacy

Approved download directories govern which file locations product editors may use. They are useful administrative controls, but approval is not purchaser authorization or proof that the stored object is private.

Approve locations you control or trust, and investigate a disabled product file before widening a rule. The current documentation also notes that approved URL checks concern the saved location, not every eventual redirect destination. Consider the trust placed in remote services.

A practical review asks two separate questions: may a product editor reference this location, and can an unpaid visitor retrieve its files? Passing the first check does not establish the second.

Keep external-location changes visible to administrators. A remote host migration or changed redirect can alter delivery behavior without changing the WooCommerce product’s title or price.

Apply account, expiry and usage policies deliberately

The login requirement in WooCommerce download settings applies to registered customers, not guest purchases. If every purchaser must have an account, coordinate that decision with guest-checkout settings and test the complete customer journey.

Choose limits and expiry that match your disclosed offer. A short access window may reduce some link reuse but can also block a legitimate customer replacing a computer or downloading a large archive. Make the recovery process clear.

Keep permission changes targeted. A refund, account correction or replacement file may require a specific entitlement review; do not assume every partial refund should remove all downloads or that a global product edit changes every past purchase.

Customer support should verify the relevant order and identity before granting replacement access. Use the supported order/download controls rather than sharing an administrator link or changing database rows directly.

Use external storage with its own access controls

For large files, a private object store and a compatible authorized-delivery integration can be appropriate. Simply replacing a local URL with a public cloud link does not create private storage.

Amazon S3 presigned URLs grant time-limited access using the signer’s permissions. They are bearer access: someone possessing a valid link may use it, potentially more than once until it expires. Choose a suitable lifetime and protect those URLs from unnecessary disclosure.

Verify that the integration checks WooCommerce entitlement before issuing access, keeps the origin private, and handles expiry and interrupted downloads as intended. A plugin’s advertised support for a storage brand is not proof of your bucket/CDN configuration.

For cached or proxied delivery, test whether an unauthorized request can reuse an authorized response. Review the specific cache key, signed URL and access policy with the host; avoid a blanket claim that all caching is unsafe or that a CDN automatically protects paid content.

Test the boundaries using your own store

Separate checks verify provider payment, WooCommerce entitlement and storage delivery; an unauthorized direct request must not bypass those layers.
Original conceptual access-boundary diagram. It is a verification plan, not proof of a completed server audit.
  1. Confirm a legitimate test purchaser can obtain the correct file after verified payment.
  2. Open the known protected origin URL in a logged-out session and confirm the intended denial.
  3. Check that another account without the purchase cannot obtain that customer’s entitlement through the store.
  4. Verify the configured expiry and exhausted-limit behavior using controlled test records.
  5. Check a fresh authorized link after a hosting, storage or caching change.
  6. Confirm support can restore eligible access without exposing a permanent public original.

Record the expected result, actual outcome and affected layer. Do not publish complete customer download links, storage credentials or private logs. Run controlled tests against your own authorized environment and avoid using real customer identities unnecessarily.

The Doorpay payment-testing guide covers payment confirmation; storage and authorization need their own observations. No payment, download or server-protection test is claimed as executed by this article.

Questions about secure digital delivery

Does checking Downloadable make the file private?

No. It configures the product’s digital delivery, while storage exposure and authorized access still need to be verified.

Is an approved directory automatically inaccessible to unpaid visitors?

No. It is a trusted-location rule for product files. Check actual direct-origin access and the delivery mechanism separately.

Will a random filename stop sharing?

It can make guessing harder, but a buyer may still share a working URL or downloaded copy. Do not use obscurity as the only boundary.

Is a cloud-hosted file always safer?

No. A public object remains public. Private storage needs a compatible entitlement and delivery design, with tested permissions and expiry.

Can Doorpay prevent all unauthorized redistribution?

No such guarantee is made. It connects supported provider payments to WooCommerce; your hosting, file authorization and product policies remain essential parts of the system.

Sources & scope

Provider references were checked on 24 October 2026. Doorpay-specific behavior is based on the supplied project documentation for release 1.5.7, reviewed 22 October 2026. Illustrations explain the workflow; they are not dashboard screenshots. No live provider-payment test, installed-code verification or performance benchmark is claimed.