Availability conditions: Restriction by IP address

Maintained by MFreakLuuk Verhoeven
Moodle availability plugin which lets users restrict resources and activities with ip address access
132 sites
8 fans

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: Luuk Verhoeven, MFreak.nl
  • Min. required: Moodle 3.2.x
  • Supports PHP: 7.0 | 7.1

Build Status

List of features

  • Supports comma separate list of ip-addresses
  • Subnet support, eg
  • Inline ip-address validation
  • Turning on/off with eye icon, without lossing the input value.


  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


If you discover any security related issues, please email luuk@MFreak.nl 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.


Screenshot #0


Luuk Verhoeven (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Wed, May 15, 2019, 5:00 PM
    Approval issue created: CONTRIB-7721
  • Picture of Muhammad Faizan Azam
    Mon, Nov 18, 2019, 12:29 PM
    Hello there can you guide me how to install this plugin breifly. Thanks!
  • Picture of Daniel Dubbeldam
    Tue, Nov 19, 2019, 8:56 PM
    Hi muhammad,

    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.
  • Picture of AMC Academic Moodle Cooperation
    Wed, Jul 29, 2020, 4:20 PM
    is there a documentation for this plugin?
    Cheers Kasia
  • MFreak
    Fri, Aug 14, 2020, 1:39 AM
    Hi 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.,
    4.1 The users with matching ip addresses can view the activity.
    5. Save the activity
Please login to post comments