Moodle Plugins directory: Availability restriction by IP address: Versions: 3.11.2 | Moodle.org

Availability restriction by IP address
Availability restriction ::: availability_ipaddress
Maintained by
Luuk Verhoeven,
Vincent Cornelis,
hamza tamyachte
Moodle availability plugin which lets users restrict resources and activities with IP address
Availability restriction by IP address 3.11.2
Moodle 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0, 4.1, 4.2
Released: شەنبە, 4 ئىيۇن 2022, 5:09 PM
Code prechecks
phplint
phpcs
js1 | 1
css
phpdoc
savepoint
thirdparty
externalbackup
grunt1 | 1
shifter
mustache
gherkin
HTML | XMLMoodle - 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.
Changelog
- 2022021100 Thanks for adding ip-range support @juacas
- 2022052800 Fixed the issue 6 @hamzatamyachte
- 2022052801 Test in Moodle 4.0 @hamzatamyachte
Version information
- Version build number
- 2022052801
- Version release name
- 3.11.2
- Maturity
- Stable version
- MD5 Sum
- 23d7bfae9835a8a4e8f3e3e7f3dd338e
- Supported software
- Moodle 3.2, Moodle 3.3, Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11, Moodle 4.0, Moodle 4.1, Moodle 4.2
- Latest release for Moodle 3.2
- Latest release for Moodle 3.3
- Latest release for Moodle 3.4
- Latest release for Moodle 3.5
- Latest release for Moodle 3.6
- Latest release for Moodle 3.7
- Latest release for Moodle 3.8
- Latest release for Moodle 3.9
- Latest release for Moodle 3.10
- Latest release for Moodle 3.11
- The more recent release 5.0.0 (2025052100) exists for Moodle 4.0
- The more recent release 5.0.0 (2025052100) exists for Moodle 4.1
- The more recent release 5.0.0 (2025052100) exists for Moodle 4.2
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS tag
- 3.11.2