System security
In this section, we deal with configuration settings, login via the secure HTTP, the IP blocker, and the Safe Exam Browser integration.
Configuration security
There are a number of general configuration settings that potentially have an impact on the security of your system.
Access to dataroot
In the Notifications screenshot at the beginning of the chapter, you would have probably spotted the warning that the dataroot
directory is directly accessible via the Internet. Moodle requires additional space on a server to store uploaded files, such as course documents and user pictures. The directory is called dataroot
and must not be accessible via the Web. If this directory is accessible directly, unauthorized users can get access to content.
To prevent this, move your dataroot
directory outside the web directory (ensure not to mangle permissions) and modify config.php
accordingly by changing the $CFG->dataroot
entry.
In externally hosted environments, it is often not possible to...