--- title: "What are protection rules?" slug: "what-are-protection-rules-4" tags: ["Product Usage", "ACC 8.4.x"] updated: 2026-09-01T13:04:56Z published: 2026-09-01T13:04:56Z canonical: "docs.trellix.com/what-are-protection-rules-4" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # What are protection rules? You can define read protection and write protection rules to prevent unauthorized data access and changes. Read protection rules prevent users from reading the content of files, directories, and volumes. When a directory or volume is read-protected, all files in it are read-protected. Any unauthorized attempt to read data from protected files is prevented and an event is generated. Writing to read-protected files is allowed. > [!NOTE] > Note > > You cannot define read protection rules for registry keys. Write protection rules prevent users from creating and changing existing files, registry keys, and directories. When a directory is included for write protection, all files in that directory and its subdirectories are write protected. > [!NOTE] > Note > > You can also define additional rules to override the read or write protection that is in effect. You can choose programs or users to override read or write protection. ### Order of precedence for protection rules These considerations are used when protection rules are applied at the endpoint. - Exclude rules are given precedence over include rules. For example, if you erroneously define an include and exclude rule for the same file, the exclude rule applies. - Longer paths are given precedence. For example, if `C:\temp` is included for write protection, and `C:\temp\foo.cfg` is excluded, the changes to `foo.cfg` are permitted. Similarly, if you exclude the `HKEY_LOCAL_MACHINE` key and include the `HKEY_LOCAL_MACHINE\System` key for write protection, the changes to the `HKEY_LOCAL_MACHINE\System` key are prevented.