Selling a PDF? A hard-to-guess link is not access control
A store sells a guide, a template or another digital file. The buyer receives a link and the download works. That test matters, but it does not answer another question: what happens if someone opens the direct file URL without making a purchase?
The delivery method matters
WooCommerce documents several download methods. With Redirect only, visitors are sent directly to the file URL. The documentation describes this method as insecure because anyone with that URL can access the file, even if they are not logged in.
Force downloads delivers the file through PHP. X-Accel-Redirect or X-Sendfile delegates delivery to the server and requires hosting support and configuration. Choosing a name from a menu does not prove that the infrastructure supports it or that direct file access is blocked.
A folder and filename do not settle permissions
The WordPress media library serves files that can be reached by direct URL. WooCommerce recommends uploading downloadable files from the product editing page instead of selecting them from that library. Even then, protection of the downloads directory depends on server configuration. NGINX needs an explicit configuration.
Appending a unique string to the filename makes its address harder to guess. It does not replace access control. Changing this option also affects future uploads only; it does not fix files or links that already exist.
Test both sides of the journey
As a suggested review, prepare a dummy file with no private information and check two cases in a test environment. An authorized buyer should be able to download it, while a visitor without permission should not obtain it through the direct URL. Do not use real material that must not be exposed for these tests.
Also review Site Health and, for externally stored files, the storage provider's controls. An inconclusive check does not establish either protection or exposure. After a server change, test both blocked access and an authorized download again. Protecting the file should not leave buyers unable to receive what they purchased.