User Agent

Maintained by Nicolas Dunand
This plugin provides a way to restrict access to Moodle activities and resources based on the user's browser user agent.
Price option: Free

Supports Moodle 4.4-4.5 See all versions
Latest release: 1 year ago
Installations: 36
Downloads (last 90 days): 13

Frankenstyle name: availability_useragent

Description

This plugin provides a way to restrict access to Moodle activities and resources based on the user's browser user agent.

Example usage to check for minimal navigator version

Use case: check and dispay a message to the user on the course page of the user is not at least on Chrome 120, Firefox 130, or Safari 18.

  1. Create a Label containing the test "Your browser version is unsupported." (or equivalent message).
  2. Add a "User agent" access restriction rule with the following RegExp: ^.*(Firefox.*13\d|Chrome.*12\d|18\..*Safari).*$
  3. Chose the must not option instead of the must option to invert the access condition.
  4. Click the eye icon next to the access rule to make it that the Label is not displayed when the condition is met.

The effect is that the label containing the warning is only displayed if the client browser versoin does not match the criterion.

Contributors

Awards

Privacy friendly