As a default, MyCourses is open to guests (i.e. to non-logged-in users).
You can restrict access to the workspace to logged-in-users (Aalto/Haka) only.
You can restrict access to a section (except to the front page) or to a resource (e.g. a folder).
How to restrict access to a section, resource or an activity
Open the section → Editing mode on → Edit → Edit section name and summary → Restrict access → Add restriction → Choose to restrict by:
How to limit recourse visibility by date
Open the resource → Edit settings → Restrict access → Add restriction → Date → set data and time
How to limit resource visibility to course members only
After you have restricted access to an object, users can see an info text.