
Availability conditions: Restriction by IP address
availability_ipaddress
Maintained by
Luuk Verhoeven
Moodle availability plugin which lets users restrict resources and activities with ip address access
138 sites
131 downloads
9 fans
Current versions available: 2
Moodle - availability ip address plugin
Restrict access to any activity by ip-address. This plugin can be used to make any chosen activity unavailable based on the user's IP.
Author
- Author: Luuk Verhoeven, MFreak.nl
- Min. required: Moodle 3.5.x
- Supports PHP: 7.2
List of features
- Supports comma separate list of ip-addresses
- Subnet support, eg 192.168.1.0/24
- Inline ip-address validation
- Turning on/off with eye icon, without lossing the input value.
Installation
- Copy this plugin to the
availability\condition\ipaddress
folder on the server - Login as administrator
- Go to Site Administrator > Notification
- Install the plugin
Usage
- Add or edit an activity in a Moodle course.
- Go to the section "Restrict access"
- Click IP address in the modal
- There's a new input field that supports a list of comma separated ip address e.g. 127.0.0.1, 192.168.1.0/24
- The users with matching ip addresses can view the activity.
- Save the activity
TODO
- Behat tests ip validation
Security
If you discover any security related issues, please email luuk@MFreak.nl instead of using the issue tracker.
License
The GNU GENERAL PUBLIC LICENSE. Please see License File for more information.
Contributing
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
Useful links
Contributors
Luuk Verhoeven (Lead maintainer)
Please login to view contributors details and/or to contact them
You can download the plugin, unzip it and place it in the /availability folder.
After that go trough the install process on your site (login as an administrator) and install the plugin. You can then use it in your activities.
is there a documentation for this plugin?
Cheers Kasia
This very basic restriction plugin;
1. Add or edit an activity in a Moodle course.
2. Go to the section "Restrict access"
3. Select IP address in the modal
4. There's a new input field that supports a list of comma separated ip address e.g. 127.0.0.1, 192.168.1.0/24
4.1 The users with matching ip addresses can view the activity.
5. Save the activity