Resources FAQ

From MoodleDocs

How can I prevent students from downloading my course files such as pdf or word-processed documents?

You can't. There are various ways to make it more difficult for them, and you can make them sign a declaration not to download them, but determined users can always find ways to save or download your course materials. If all else fails they can make a screencast or screenshot, or use the camera on a mobile device. If it is essential for you that students do not download your course materials then do not offer the materials in your course. See also the forum discussion Regarding uploaded content protection.

How can I stop uploaded files from being cached when I update them?

By default, Moodle adds a "cache-control" header to all files that is sends. The default period is 24 hours. You can reduce this or eliminate it entirely (set to zero) by adding the following line to your config.php (default value shown).

   $CFG->filelifetime = 86400;

Any further questions?

Please post in the Resource types forum on moodle.org.