Moodle Plugins directory: User Agent | Moodle.org
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.
- Create a Label containing the test "Your browser version is unsupported." (or equivalent message).
- Add a "User agent" access restriction rule with the following RegExp:
^.*(Firefox.*13\d|Chrome.*12\d|18\..*Safari).*$
- Chose the
must not
option instead of themust
option to invert the access condition. - 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.
Useful links
Contributors
Nicolas Dunand (Lead maintainer)
Please login to view contributors details and/or to contact them
Comments