Login
Get Started

Easy Digital Downloads Blog

WordPress Tutorials, Tips, and Resources to Help Grow Your Business

How to protect digital products from sharing in WordPress with Easy Digital Downloads

How to Protect Digital Downloads (and What Doesn’t Work)

Last Updated:

reviewer image
REVIEWED By Chris Klosowski President

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

No method is perfectA buyer can always copy a file they own. Your goal is to make sharing hard and to protect the download link itself.
Protect the linkDownload limits and expiring links stop a shared link from working for everyone it reaches.
Store files safelyUpload files through your product, not the media library, so they land in a folder that blocks direct links.
Use keys for softwareLicense 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 tricksHiding 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.

The Easy Digital Downloads plugin website.

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.

The Require Login toggle on the File Downloads settings screen in Easy Digital Downloads.

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.

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.

The File Download Limit, Download Link Expiration, and Limit File Access settings in Easy Digital Downloads.
  • 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 softwareNeeds a licensing tool like EDD’s Software Licensing
Fully automated once it’s set upBest suited to software, not ebooks or images
Scales to large numbers of customers and productsYour 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.

The Status and visibility settings in the WordPress editor with Password protected checked and a password entered.

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 costTakes manual work per page or file, so it doesn’t scale well
Private links are an easy way to share filesA password can be shared as easily as a link
Encrypted files can’t be opened without the passwordFile-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.

Finding the .htaccess file in the cPanel File Manager to protect digital products.
Editing the .htaccess file in cPanel to protect digital products.

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 foldersRequires coding knowledge and server access
Free, apart from your timeOne 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:

MethodWhat it doesWhy it falls short
Block the folder with robots.txtAsks search engines not to crawl a folderIt’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 subdomainMoves files to a new address so old links breakHurts 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 pathRenames folders or files so old links stop workingTakes constant manual work, breaks links for real customers, and site-scanning tools still find the new path.
Hide files behind random namesGives files and folders nonsense names like x9ppo97gGThe files are still in plain sight. Anyone scanning your site can find and download them.
Bury files in layers of foldersPuts files several folders deepNo 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 withAdd if needed
Ebooks and PDFsProtected folder, download limits, expiring linksPassword-protected PDF
Software, plugins, and themesLicense keys, protected folderRequire login
Photos and graphicsWatermarked previews, download limitsRequire login
Audio and music filesDownload limits, expiring linksRequire login
Courses and members-only contentRequire login, download limitsExpiring 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.

How do I protect my Etsy digital downloads from being shared for free?

Etsy controls how its files are delivered, so you have few settings to work with. You can add watermarks to previews and copyright notices inside your files. If you sell from your own WordPress site with Easy Digital Downloads, you can also set download limits and expiring links.

How do I protect an ebook or PDF from being shared?

Upload the file through your Easy Digital Downloads product so it’s stored in a protected folder. Then set a download limit and an expiring link. For extra protection, add a password to the PDF itself, or add your name and copyright notice to each page.

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.

Photo: Kangaroo with watermark

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.

Popular Resources

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how EDD is funded, why it matters, and how you can support us.

Experience Seamless Selling with EDD

Effortlessly manage your digital store with powerful tools and secure transactions

Popular on EDD Right Now!

Plan Black Friday Sale Using Your EDD Store's Data
How to Use Your Past Sales Data to Plan a Black Friday Sale
Your last Black Friday already shows what to put on sale, how big the discount needs to be, and who…
How to Prepare for Black Friday Sales as a Digital Seller: Checklist With AI Prompts
How to Prepare for Black Friday as a Digital Seller
Black Friday prep starts with last year's sales, not a discount code. This checklist walks digital sellers through four phases:…

Start selling today!

Join over 50,000 smart store owners, and start using the easiest way to sell digital products with WordPress.

Copyright © 2026 Sandhills Development, LLC