Context freezing is an experimental feature that is available from Moodle 3.6 onwards.
With this, a user with the relevant permission can make a category, block, courses or courses content read-only. It prevents other users from editing the content or add to the content.
To turn on this feature at site-level
Step 1. Login as Administrator
Step 2. Click Site Administration
Step 3. Click Development
Step 4. Click Experimental settings
Step 5. Click the checkbox that corresponds with “Context freezing” to turn on “Context freezing”
Step 6. If you would like to apply “Context freezing” for Site Admins as well, click on the checkbox next to “Context freezing applies to administrators”
Step 7. Click “Save Changes”
To Context freeze a Course
Step 1. Enter the relevant course
Step 2. Click the cog on the right-hand side
Step 3. Click “Freeze this context”
Step 4. Click “Continue”
Step 5. You will now see a notification to inform the context if frozen.
The Course content cannot be modified unless it is removed from the frozen state by an administrator or users with relevant permissions.
Similarly, you can freeze categories, blocks, courses or courses content (activities/resources)
Freeze Activity
Freeze Catagory