How to prevent deletion or modification of files and protect them from the danger of ransomware
Among the worst attacks that your device can be exposed to is a "Ransomware" attack, this dangerous attack mainly targets user files that urge to encrypt them and prevent access to them, then ask the user to pay to decode them, where this attack succeeds in encoding the adjustable files, As for the non-editable files, i.e. read-only, ransomware will not be able to encrypt and then control them, so it will be safe to make your important and sensitive files read-only without modification, in this way no party or person will be able to edit or delete them unless after your approval, In order to protect your files in this way, we suggest that you use the FileProtection program.
FileProtection program is a free application for Windows through which you can prevent deletion or modification of files and protect them from the risk of ransomware by making them readable only without modification, in this way you will keep your important and sensitive files from the risk of modifying them or deleting them inadvertently, in addition to this you will not be able Ransomware from encoding and controlling it, of course, you can remove the protection from any file whenever you like after confirming the "User Account Control" "UAC" window, which requires addictive powers or through a password that is set in the program.
Prevent deletion or modification of files and protect them from the danger of ransomware
Very simply and after installing the program click on any file you want to protect with the right mouse button and then choose Protect File:
..
After protecting the file, a red dot will be added to the bottom left of the file icon indicating that this file is protected from modification. If you try to delete the file or modify it, you will get this window:

There are two ways to remove protection from the file, first by clicking on the file with the right button of the mouse and choosing Unprotect File, then confirming the UAC window:
The second way to remove protection from the file if you do not have addictive powers is by setting a password for the program from Settings, then File Protection:

Download Link