Enhance activity security by restricting access based on IP address. This plugin allows you to control the availability of any chosen activity, making it accessible only to users from specified IP addresses.
- Author: Luuk Verhoeven, ldesignmedia.nl
- Min. required: Moodle 4.0
- Supports PHP: 7.4
- 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.
- Copy this plugin to the
availability\condition\ipaddress
folder on the server - Login as administrator
- Go to Site Administrator > Notification
- Install the plugin
- 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
- Behat tests ip validation
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The GNU GENERAL PUBLIC LICENSE. Please see License File for more information.
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
- 2024072000 Tested on Moodle 4.4
- 2022021100 Thanks for adding ip-range support @juacas
- 2022052800 Fixed the issue 6 @hamzatamyachte
- 2022052801 Test in Moodle 4.0 @hamzatamyachte