How to Protect Files from Ransomware - 2 Best Ways

Here is how to protect files from ransomware step by step, including using a Windows native tool and a reliable third-party PC ransomware protection tool.

By Jonna    Updated on May 8, 2026

In recent years, cyber threats have evolved faster than ever, and ransomware has become one of the most dangerous types of attacks. If you’ve ever wondered how to protect files from ransomware, you’re in the right place. Individuals, businesses, and even large organizations are constantly at risk of losing valuable data to malicious encryption attacks. One wrong click on a suspicious email or unsafe download, and suddenly, your files are locked behind a paywall.

In this guide, you’ll discover two reliable ways to protect your files from ransomware, along with detailed steps to keep your data safe.

How to Protect Files from Ransomware with Windows Security

Windows Security is the built-in, real-time security suite in Windows, formerly known as Windows Defender. It provides comprehensive protection solutions against viruses, malware, and ransomware. Key features of Windows Security for ransomware protection include:

  • Controlled folder access - It blocks unauthorized apps from modifying files.
  • Real-time protection - It helps to monitor threats continuously.
  • Cloud-delivered protection - It uses AI to detect emerging threats.
  • Automatic updates - This keeps your system protected with the latest definitions.

Here, we focus on controlled folder access. It works by monitoring applications that attempt to change files in protected folders. If an unrecognized or suspicious app tries to make changes, it gets blocked immediately. This prevents ransomware from encrypting your files without permission. Follow the steps below to enable ransomware protection on Windows 10/11:

Step 1. Press Win + I to open Settings, then go to Privacy & Security > Windows Security > Virus & threat protection.

Step 2. Then, scroll down and click on Manage ransomware protection.

Step 3. Here, you can toggle controlled folder access.

  • Set the switch to On to enable it. This will block untrusted or unknown apps from accessing files in protected folders.
  • Set it to Off to disable it. All applications will be able to access protected folders without restriction.

Step 4. If you want to protect additional important folders, you can add them via Protected Folders. By default, folders like Documents, Pictures, and Desktop are included.

Step 5. If a trusted app is blocked from making changes to a protected folder, you can manually allow it by clicking Allow an app through controlled folder access to add it to the allowlist.

Protect PC from Ransomware using Ransomware Protection Software

While effective, Windows Security is not a complete solution. It primarily focuses on prevention rather than recovery. If ransomware bypasses the protection, recovering files can still be difficult. The professional Windows backup software AOMEI Backupper goes beyond basic monitoring by offering backup, recovery, and advanced ransomware protection features. Here are some of its most notable features:

AOMEI Backupper
Proactive Backup Software for Windows
  • Automatic backup scheduling: Set up daily, weekly, or monthly backups without manual intervention. This ensures your data is always up to date.
  • Ransomware protection: It allows you to prevent unauthorized programs from accessing or modifying backup files created with AOMEI Backupper and specified file types & file/folder paths from ransomware.
  • Bootable media creation: It is capable of creating bootable USB/CD/DVD to recover system even if it fails to start due to ransomware damage.
  • Cloud and external storage support: It supports storing backup files off-site, like NAS, USB, SD card, cloud storage, and so on.

Here is how to protect computer from ransomware using AOMEI Backupper.

Step 1. Download and install AOMEI Backupper on your computer. Click on Backup, and select from options like File Backup, System Backup, or Disk Backup depending on your needs.

Step 2. Navigate to Tools > Ransomware Protection.

Step 3. Toggle the switch to enable Ransomware Protection to access 3 sub-options.

  • The option to protect backup image created by AOMEI Backupper is automatically checked.
  • To protect individual data, specify the file type or path. For how to protect backups from ransomware, you can add the backup folder path to it directly, like C:\backup.

Step 4. After setting up, click OK to save the changes.

What to Do if Infected with Ransomware?

Despite taking precautions for ransomware protection on Windows 11/10, no system is entirely immune. Knowing how to respond quickly can make the difference between minor disruption and catastrophic loss. The moment you suspect a ransomware infection, act immediately.

#1. Immediate actions to take

  • Disconnect your computer from the internet to prevent the spread of malware
  • Unplug external storage devices to protect unaffected data
  • Avoid restarting the system unless necessary, as this can sometimes trigger encryption processes
  • Identify the type of ransomware if possible

#2. Do not pay the ransom

It may be tempting to pay the attacker, especially if valuable files are locked. However, paying does not guarantee recovery. In many cases, victims never regain access to their data even after payment.

#3. Attempt recovery methods

  • Instead of paying, consider these options:
  • Restore files from a clean backup
  • Use ransomware decryption tools if available
  • Recover previous file versions through system restore points
  • Seek professional cybersecurity assistance

#4. Report the Attack

Reporting ransomware incidents helps authorities track cybercriminals and may assist in future prevention efforts. It also contributes to broader cybersecurity awareness.

Conclusion

The above are 2 methods about how to protect files from ransomware. Ransomware is a persistent and evolving threat, but it doesn’t have to be devastating. By combining built-in tools like Windows Security with dedicated solutions such as AOMEI Backupper, you can dramatically reduce your risk.

Free Download Windows 7/8/8.1/10/11
 
Jonna · Editor
Jonna joined AOMEI in 2021 and has become a professional in computer backup and restoration, disk cloning, file synchronization, etc. She maintains a keen eye for the latest technology trends and ensures that the information provided is always in step with industry developments.