This plugin requires Craft CMS 3.0.0-beta.23 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require vangenplotz/craft3-iprangecheck/
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Ip Range Check.
-Insert text here-
-Insert text here-
- Copy the config.php over to craft/config/ip-range-check.php and insert your ip ranges.
- use the craft.ipRangeCheck.checkValidIp to check if current ip is valid. Will return an array with access set to true / false, and the user message.
Some things to do, and ideas for potential features:
- Release it
Brought to you by Vangenplotz