Configure controlled folder access - Microsoft Defender for Endpoint

Enable controlled folder access to protect your important files and folders from malicious apps and threats such as ransomware.