mirror of
https://github.com/LdesignMedia/moodle-availability_ipaddress.git
synced 2026-05-16 21:41:28 +02:00
67 lines
2.8 KiB
Markdown
67 lines
2.8 KiB
Markdown
## Moodle - availability ip address plugin
|
|
|
|
[](https://github.com/LdesignMedia/moodle-availability_ipaddress/actions/workflows/ci.yml)
|
|
|
|
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
|
|
<img src="https://ldesignmedia.nl/themes/ldesignmedia/assets/images/logo/logo.svg" alt="ldesignmedia" height="70px">
|
|
|
|
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
|
* Author: Vincent Cornelis, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
|
* Min. required: Moodle 4.0
|
|
* Supports PHP: 7.3+
|
|
|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|
|
|

|
|

|
|

|
|

|
|

|
|
|
|
## 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 losing 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
|
|
|
|
## Security
|
|
|
|
If you discover any security related issues, please email [luuk@ldesignmedia.nl](mailto:luuk@ldesignmedia.nl) instead of using the issue tracker.
|
|
|
|
## License
|
|
|
|
The GNU GENERAL PUBLIC LICENSE. Please see [License File](LICENSE) for more information.
|
|
|
|
## Contributing
|
|
|
|
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
|
|
|
|
### Changelog
|
|
|
|
See [CHANGELOG.md](CHANGELOG.md) for a full list of changes.
|