System security
In this section, we are dealing with configuration settings, login via secure HTTP, IP blocker, module security, and 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.
Accessibility of dataroot
In the Notifications screenshot at the beginning of the chapter, you must 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 and modify config.php
accordingly, by changing the $CFG->dataroot
entry.
In externally-hosted environments, it is often not possible to locate the...