User Agent

Availability restriction ::: availability_useragent
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.
Latest release:
13 sites
8 downloads
1 fans
Current versions available: 1

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.

Screenshots

Screenshot #0

Contributors

Nicolas Dunand (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

显示评论
Please login to post comments