To restrict a page to be only accessible only by group members or course students, you need to restrict the pages of your course or membership with Member Groups.
Find the page/s you want to restrict access to and click on the settings gear to get to the page settings.
In the Page Access drop-down menu, select Members Only and click on Choose Member Groups, after that all you need to do is select what groups should have access to that page.