How do I set folder password in moodle? I want to give access to those students who know the password..
Are you able to install plugins on your site? If so then there is a Restrict by password availability plugin that will do what you want: https://moodle.org/plugins/availability_password