Worried that someone will buy your ebook once and share it with everyone they know? It’s a fair concern for anyone who sells files online.
The honest answer is that you can’t stop sharing completely. Once a buyer has a file, they can copy it. What you can do is make sharing hard, limit who can download, and stop one leaked link from giving the file away for free.
In this guide, you’ll learn how to protect digital downloads in WordPress with Easy Digital Downloads (EDD). You’ll also see which popular tricks don’t really work, so you can skip them.
- Key Takeaways
- Can You Stop People From Sharing Your Digital Products?
- The Best Ways to Protect Digital Downloads
- Methods That Don't Really Protect Your Files
- How to Choose the Right Protection for Your Products
- FAQs About Protecting Digital Downloads
- Can you completely stop people from sharing digital downloads?
- How do I protect my Etsy digital downloads from being shared for free?
- How do I protect an ebook or PDF from being shared?
- Will download limits annoy my customers?
- Should I watermark my images?
- What is two-factor authentication (2FA), and does it help?
- What's the best way to protect digital products in WordPress?
- Start Protecting Your Digital Downloads Today
Key Takeaways
| No method is perfect | A buyer can always copy a file they own. Your goal is to make sharing hard and to protect the download link itself. |
| Protect the link | Download limits and expiring links stop a shared link from working for everyone it reaches. |
| Store files safely | Upload files through your product, not the media library, so they land in a folder that blocks direct links. |
| Use keys for software | License keys let you check that each copy of your plugin or app is paid for, and turn off copies that aren’t. |
| Skip the old tricks | Hiding files, renaming folders, and robots.txt rules don’t stop anyone who goes looking. |
Can You Stop People From Sharing Your Digital Products?
No. You can’t stop every buyer from sharing a file they’ve paid for. But you can make it hard enough that most people won’t bother.
Digital files are easy to copy. That’s what makes them great to sell, and it’s also what makes them hard to protect. Chasing every pirate would eat up the time you’d rather spend creating your digital products.
A smarter approach is to focus on what you can control:
- Who can download: Only paying customers, and only while they’re logged in if you choose.
- How many times: A small number of downloads per purchase.
- For how long: Links that expire after a set number of hours.
- Where the file lives: A protected folder that blocks direct links.
Do those things well, and a leaked link stops working fast. That protects your income without making life harder for the honest buyers who make up most of your customers.
The Best Ways to Protect Digital Downloads
The simplest way to protect digital downloads in WordPress is to sell them with a plugin built for digital products. Easy Digital Downloads is made for exactly that.
EDD adds a shopping cart, a checkout page, and secure file delivery to your site. You can accept PayPal payments or Stripe, and you control who gets access to each file. It’s a good fit whether you’re selling digital products in WordPress for the first time or moving an existing shop.
These are the methods that actually work. The first three are built into the free version of Easy Digital Downloads.
1. Store Your Files in a Protected Folder
Where your file lives matters. If you upload it to the WordPress media library, anyone with the file’s address can open it.
Easy Digital Downloads handles this for you. When you upload a file through the Files tab of a product’s Download Details box, EDD saves it to a protected folder that blocks direct links. Buyers get a special download link instead of the file’s real address.
The Download Method setting adds another layer. Go to Downloads » Settings » Misc » File Downloads. The Forced method is the default, and it gives the best protection because the buyer never sees where the file is stored.
If you sell very large files, Forced can time out on some servers. In that case, switch to Redirect. You can also store files on Amazon S3 with the Amazon S3 feature, so they don’t sit on your own server at all.
You can read more about each option in the Misc settings documentation.
2. Require Login to Download
You can make your files available only to customers who are logged in to your site. A shared link is useless to someone who doesn’t have an account.
Go to Downloads » Settings » Misc » File Downloads and turn on the Require Login toggle.

Click Save Changes at the bottom. Now every download link asks the buyer to log in before the file is delivered.
Keep in mind that this can affect links in purchase receipts if you allow guest checkout. Buyers who checked out as guests will need an account before their link works.
A login step can also add friction for honest buyers. A magic login link at checkout can make signing in quicker.
3. Set Download Limits and Expiring Links
Download limits control how many times a file can be downloaded per purchase. Expiring links control how long a download link keeps working. Together, they stop a shared link from working for everyone it reaches.
You’ll find both on the same Downloads » Settings » Misc » File Downloads screen.

- File Download Limit: The most times a buyer can download files from one purchase, such as 3. Leave it blank for unlimited downloads. You can change it for a single product on that product’s Settings tab.
- Download Link Expiration: How many hours a download link stays valid. The default is 24. When a buyer visits their account page or you resend the receipt, EDD creates a fresh link.
- Limit File Access: Turn this on to give buyers download links only right after they make a purchase.
Click Save Changes when you’re done.
A limit of 3 to 5 downloads leaves room for a buyer who switches computers. It still stops a link from being shared around a whole group.
4. Use License Keys for Software
If you sell WordPress plugins, themes, or apps, license keys are the strongest protection you can add. Each buyer gets a unique key, and your software checks that key before it unlocks updates or features.
If someone shares your plugin, you can turn off their key. The copy stops getting updates, and you haven’t had to chase anyone.
Easy Digital Downloads handles this with the Software Licensing feature. It creates keys at checkout, tracks activations, and lets you limit how many sites each key works on.
💡 Learn how to sell licensed software in WordPress, or see how to manage software licenses with AI.
| 🟢 Pros | 🔴 Cons |
|---|---|
| One of the most powerful ways to protect software | Needs a licensing tool like EDD’s Software Licensing |
| Fully automated once it’s set up | Best suited to software, not ebooks or images |
| Scales to large numbers of customers and products | Your software needs to check the key |
| Lets you turn off access for shared copies |
5. Add Password Protection or File Encryption
Password protection puts a password in front of a page or file. You can use it to protect the page where your download link lives, or the file itself.
To protect a page or post in WordPress, open it in the editor. In the post settings sidebar, click the Status value, such as Published. In the Status & visibility box that opens, check Password protected and enter a password. Then click Save.

Anyone who visits the page now has to enter the password first. See this WPBeginner tutorial on password protecting WordPress posts for more detail.
Some file types support encryption, too. A password-protected PDF, for example, won’t open without the password. Learn more in our complete guide to selling PDFs on WordPress.
File-sharing apps like Google Drive, Dropbox, and Box offer similar options. You can share a file with specific email addresses only, or with anyone who has the link. The second option is easy, but nothing stops a buyer from passing that link along.
| 🟢 Pros | 🔴 Cons |
|---|---|
| Built into WordPress at no extra cost | Takes manual work per page or file, so it doesn’t scale well |
| Private links are an easy way to share files | A password can be shared as easily as a link |
| Encrypted files can’t be opened without the password | File-sharing apps send buyers away from your site |
6. Secure Folders With .htaccess
Most WordPress sites have a hidden file on the server called .htaccess. You can add rules to it that block access to certain folders or files.
You reach it through FTP or your hosting control panel, such as cPanel.


This method works, but it’s not for beginners. One typo can take your whole site offline, and some hosts don’t let you edit the file at all.
We don’t recommend editing your .htaccess file unless you’re comfortable with code. Your host’s support team can often help if you need a custom rule. For most sellers, EDD’s protected folder from method 1 already does this job.
| 🟢 Pros | 🔴 Cons |
|---|---|
| A strong way to block access to folders | Requires coding knowledge and server access |
| Free, apart from your time | One mistake can break your site |
| Manual, so it doesn’t scale well |
Methods That Don’t Really Protect Your Files
You’ll find plenty of other tips online for protecting digital products. Most of them are outdated. They take time, can hurt your search rankings, and don’t stop anyone who goes looking.
This table sums up the five most common ones:
| Method | What it does | Why it falls short |
|---|---|---|
| Block the folder with robots.txt | Asks search engines not to crawl a folder | It’s a request, not a lock. Bad actors ignore it, and the file can even point them to the folder you’re hiding. |
| Change your domain or subdomain | Moves files to a new address so old links break | Hurts your search rankings and brand, costs money for new domains, and the files are just as easy to find on the new domain. |
| Change the page or link path | Renames folders or files so old links stop working | Takes constant manual work, breaks links for real customers, and site-scanning tools still find the new path. |
| Hide files behind random names | Gives files and folders nonsense names like x9ppo97gG | The files are still in plain sight. Anyone scanning your site can find and download them. |
| Bury files in layers of folders | Puts files several folders deep | No one knows how deep search engines go, and other tools can scan every folder on your site. |
It’s still a good idea to keep search engines out of folders that hold private files. Just don’t rely on it as your protection. Use one of the methods above instead.
How to Choose the Right Protection for Your Products
The right mix depends on what you sell. Most sellers only need two or three of the methods above.
| If you sell… | Start with | Add if needed |
|---|---|---|
| Ebooks and PDFs | Protected folder, download limits, expiring links | Password-protected PDF |
| Software, plugins, and themes | License keys, protected folder | Require login |
| Photos and graphics | Watermarked previews, download limits | Require login |
| Audio and music files | Download limits, expiring links | Require login |
| Courses and members-only content | Require login, download limits | Expiring links |
Start with the settings that take the least effort, like download limits and expiring links. You can always add more later if you notice links being shared.
FAQs About Protecting Digital Downloads
These are answers to the questions sellers ask most about protecting digital products.
Can you completely stop people from sharing digital downloads?
No. Once a buyer has a file, they can copy it. What you can control is the download link. With Easy Digital Downloads, you can limit how many times a file is downloaded, make links expire, and require buyers to log in. That stops a shared link from giving everyone free access.
Will download limits annoy my customers?
Not if you set a sensible number. A limit of 3 to 5 downloads covers buyers who switch devices. If a product needs more, you can raise the limit for just that product on its Settings tab.
Should I watermark my images?
Yes, if you sell photos or graphics. A watermark puts your name or copyright notice over the preview image so people can’t use it for free. Buyers get the clean file after they pay.

See our guide to selling graphics and digital artwork for more on watermarks and file formats.
What is two-factor authentication (2FA), and does it help?
Two-factor authentication asks for a code from your phone, along with your password, when you log in. It protects your own accounts, like your website and payment accounts, so no one can break in and take your files. Turn it on anywhere it’s offered.
What’s the best way to protect digital products in WordPress?
Use an ecommerce plugin built for digital products, like Easy Digital Downloads. It stores files in a protected folder and creates a unique download link for each purchase. You can then add login rules, download limits, expiring links, and license keys for software.
Start Protecting Your Digital Downloads Today
You can’t stop every copy, and you don’t need to. Make links hard to share, keep your files out of public folders, and use license keys if you sell software.
Easy Digital Downloads gives you those controls from your WordPress dashboard. The protected folder, login rules, download limits, and expiring links are all in the free version.
Already using EDD and want access to every premium feature? You can upgrade from EDD Lite to EDD Pro.
📣 P.S. Want more WordPress resources?
Get tips in your inbox, or follow along on your favorite platform.





