Restrict what IP addresses can access the Craft control panel and front-end
This plugin requires Craft CMS ^4.0.0 or ^5.0.0 and PHP ^8.0.2
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 jrrdnx/craft-ip-restrictor
- In the Control Panel, go to Settings -> Plugins and click the "Install" button for IP Restrictor. You can also use the CLI to install and enable:
php craft plugin/install ip-restrictor
php craft plugin/enable ip-restrictor
- In the Control Panel, go to Settings and click on the IP Restictor icon to configure this plugin's settings.
OR
- Copy the vendor/jrrdnx/craft-ip-restrictor/src/config.php file to config/ip-restrictor.php and modify the default settings as necessary.
cp vendor/jrrdnx/craft-ip-restrictor/src/config.php config/ip-restrictor.php
Full documentation can be viewed at https://jarrodnix.dev/plugins/ip-restrictor/v1
Open an Issue to report any bugs or request a new feature.
Brought to you by Jarrod D Nix