2021-12-09 13:38:46 +01:00
2020-11-18 09:45:40 +01:00
2019-05-21 14:48:00 +02:00
2019-05-14 12:25:43 +02:00
2020-11-18 09:45:40 +01:00
2019-05-14 20:08:02 +02:00
2020-11-18 09:49:19 +01:00
2020-11-18 09:45:40 +01:00

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

MFreak.nl

  • Author: Luuk Verhoeven, MFreak.nl
  • Min. required: Moodle 3.5.x
  • Supports PHP: 7.2

Build Status Moodle35 Moodle36 Moodle37 Moodle38 Moodle39 Moodle310 PHP7.2

Screenshot

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

  1. Copy this plugin to the availability\condition\ipaddress folder on the server
  2. Login as administrator
  3. Go to Site Administrator > Notification
  4. Install the plugin

Usage

  1. Add or edit an activity in a Moodle course.
  2. Go to the section "Restrict access"
  3. Click 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
    1. The users with matching ip addresses can view the activity.
  5. 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.

Languages
PHP 100%