Skip to content

Download (external) linked files

Daniel Vogt edited this page Oct 3, 2020 · 3 revisions

In Moodle courses the teacher can also link to external files. This can be audio, video, text or anything else. In particular, the teacher can link to Youtube videos.

NOTE: These files can increase the download volume considerably.

If you want to filter the external links by their domain, you can manually set a whitelist and a blacklist. Please note that the size of the external files is determined during the download, so the total size changes during the download.

To enable downloading of linked files, you must set download_linked_files in the configuration as follows:

"download_linked_files": true,

Whitelist and Blacklist

The whitelist download_domains_whitelist and the blacklist download_domains_blacklist are both lists of domains. These lists are used to filter the external links. This has nothing to do with the normal Moodle files, only with the linked files.

Domains are part of a URL. They are the names of the websites you visit, for example youtube.com. Both filter lists automatically include the subdomains, for example, if youtube.com was added to the blacklist, then www.youtube.com will also be filtered out as well as m.youtube.com and all other subdomains. If download_domains_whitelist is empty, everything is whitelisted except the domains in the blacklist.

The filter lists can look like the following:

"download_domains_whitelist": [
     "ruhr-uni-bochum.de",
     "sciebo.de",
     "rub.de"
],
"download_domains_blacklist": [
     "youtube.com",
     "twitch.tv"
],
Clone this wiki locally