Lock Resource restricts student access. When enabled for a resource, a lock button will appear right beside the resource name and students will not be able to access the same. To lock all resources of a course, you can click on the notch right below the Lock Resource label