The best way to protect files from ransomware is to keep at least one backup that is disconnected from your PC, so ransomware cannot reach it, and then reduce the chance of an infection with Windows updates, Controlled folder access and careful handling of downloads and attachments. Backups are what actually save you if everything else fails; the other steps make it less likely you will ever need them.
The Verizon 2026 Data Breach Investigations Report found ransomware in 48% of the breaches it analysed, so this is worth an hour of your time. Here is how to set it all up on Windows 10 and Windows 11.
1. Keep a backup ransomware cannot reach
Ransomware encrypts everything it can see, including external drives and network shares that are plugged in at the time. A good backup plan follows the 3-2-1 rule: three copies of your data, on two different types of storage, with one copy kept offline or off-site.
| Backup type | Protects against ransomware? | How to make it safe |
|---|---|---|
| External USB drive | Yes, if unplugged | Connect it only while the backup runs, then disconnect it |
| Cloud sync (OneDrive, Dropbox) | Partly | Sync copies encrypted files too; rely on the service's version history or restore feature |
| Network drive (NAS) | Only with snapshots | Enable read-only snapshots on the NAS so old versions cannot be overwritten |
| Second internal drive | No | Always connected, so it is encrypted along with everything else |
To set up File History on Windows 10 or 11, plug in an external drive and open Control Panel > System and Security > File History, then click Turn on. On Windows 10 you can also use Settings > Update & Security > Backup. Remember to unplug the drive afterwards, and test a restore now and then so you know it works.
2. Turn on Controlled folder access
Windows Security includes a ransomware feature that blocks unknown apps from changing files in protected folders. It is off by default.
- Open Settings > Privacy & security > Windows Security (Windows 10: Settings > Update & Security > Windows Security).
- Click Virus & threat protection, scroll to Ransomware protection and click Manage ransomware protection.
- Switch Controlled folder access on.
- Use Protected folders to add any folders outside Documents, Pictures and Desktop that matter to you.
Some legitimate programs may be blocked from saving. If that happens, use Allow an app through Controlled folder access on the same page to add them.
3. Keep Windows and your software up to date
The same Verizon report found that exploitation of vulnerabilities was the top way attackers got in, at 31% of breaches. Keeping software patched closes those doors.
- Open Settings > Windows Update and click Check for updates. Install everything offered, including optional security updates.
- Update your browser, PDF reader, office software and any remote-access tools.
- Uninstall programs you no longer use from Settings > Apps > Installed apps. Fewer programs means fewer weaknesses.
4. Be careful with attachments and downloads
Ransomware usually arrives through a phishing email, a fake download or a trojan that was installed earlier. A few habits make a big difference:
- Do not open unexpected attachments, even from people you know. Check with the sender by another route first.
- Turn on file name extensions in File Explorer (View > Show > File name extensions on Windows 11, or tick File name extensions on the View tab in Windows 10) so you can spot tricks like
invoice.pdf.exe. - Download software only from the developer's own website or the Microsoft Store.
- Never enable macros in a document just because the document tells you to.
For more on this, see how malware gets on your computer.
5. Use a standard account for everyday work
If you sign in with an administrator account all the time, any malware you run gets administrator rights too. Create a standard account for daily use under Settings > Accounts > Other users (Windows 10: Family & other users) and keep the administrator account for installing software.
6. Know the warning signs
Catching ransomware early limits the damage. Files with strange new extensions, ransom notes appearing in folders and sudden heavy disk activity are all reasons to disconnect at once. Our guide to ransomware warning signs explains what to look for, and what to do if you get ransomware covers the recovery steps.
How Threat Eraser protects your files from ransomware
Threat Eraser is a complete virus, malware and trojan scanner and remover, with features aimed squarely at ransomware. Its licensed Real-Time Watch scans new and changed files in Downloads, Desktop, Documents and any folders you add, a moment after they arrive, and can quarantine a detected file automatically before you open it. Ransomware Early Warning watches the same folders and alerts you if many files are renamed or rewritten in a short time, known ransomware extensions appear, or ransom-note files are created, giving you the chance to disconnect quickly. It warns rather than decrypts, so backups still matter.
Definitions update automatically each time Threat Eraser starts and every few hours while it runs. A Quick Scan checks the places malware usually hides, including Downloads, temporary folders and Startup folders, and flags suspicious names such as double extensions. With a license you can also set daily or weekly scheduled scans so checks happen without you having to remember.
Read more about ransomware protection in Threat Eraser.
Frequently asked questions
Does OneDrive protect me from ransomware?
Partly. Sync copies encrypted files too, but version history and the Restore your OneDrive feature for Microsoft 365 subscribers can roll files back.
What is Controlled folder access?
It is a Windows Security feature that blocks unrecognised apps from changing files in protected folders. It is off by default.
How often should I back up?
As often as you can bear to lose work. Weekly suits many home users, while businesses usually need daily backups.
