Note: You are currently viewing documentation for Moodle 3.6. Up-to-date documentation for the latest stable version of Moodle is likely available here: Privacy policy settings.

Privacy policy settings

From MoodleDocs


The policy settings control whether the old (prior to 3.5) or new policy process is enabled. The old process used the two fields of sitepolicy and sitepolicyguest to embed a webpage into the login process that someone had to agree to.

Site policy handler

Site policy settings

When this setting is set to default (core) this enables the existing default policy handler in Moodle. To enable the new features for managing and versioning of policies this needs to be set to “Policies (tool_policy)”. The new method uses the tool_policy plugin for GDPR compliance. However, in the future other systems could be added or can be developed as custom plugins.

Enabling the policies plugin

To enable the policies plugin

  1. Go to 'Policy settings' in the Site administration.
  2. Set the Site policy handler to 'Policies (tool_policy)'.
  3. Save changes.

Two new pages will then appear in the Site administration - 'Manage policies' and 'User agreements'.

Site policy URLs

Note that when Policies is set as the site policy handler, the settings 'Site policy' and 'Site policy for guests' are ignored.

A site policy may be enabled by entering the URL in 'Policy settings' in the Site administration. The URL can point to any type of file anywhere online that can be accessed without a log in to your Moodle.

  • It is not recommended that a page resource is used as a site policy, since the site header will be repeated in the iframe (see MDL-30486).
  • It is recommended that the site policy is on the same domain as Moodle to avoid the problem of Internet Explorer users seeing a blank screen when the site policy is on a different domain.
  • The site policy will be displayed in a frame. You can view it via the URL yourmoodlesite.org/user/policy.php.
  • If Email-based self-registration is enabled on the site, a link to the site policy is displayed on the signup page.
  • When a site policy URL is set, all users will be required to agree to it when they next log in before accessing the rest of the site.
  • A site policy for guests may also be enabled. Guest users will need to agree to it before accessing a course with Guest access enabled.

(In versions of Moodle prior to 3.4.2, the the Site policy URL and Site policy URL for guests settings were located in 'Site policies'.)

See also