2017 © Pedro Peláez
 

craft-plugin craft3-restrict

Restrict access to the CP based on a IP whitelist

image

superbig/craft3-restrict

Restrict access to the CP based on a IP whitelist

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 433 % Grown

The README.md

Note: This plugin has been abandoned. Use Knock Knock as an alternative., (*1)

Restrict plugin for Craft CMS 3.x

Restrict access to the CP based on a IP whitelist, (*2)

Screenshot, (*3)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*4)

Installation

To install the plugin, follow these instructions., (*5)

  1. Open your terminal and go to your Craft project:, (*6)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*7)

    composer require superbig/craft3-restrict
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Restrict., (*8)

Configuring Restrict

<?php
return [
    'enabled'     => true,

    // Add any IPs you want to be able to access the CP. You can also use CIDR notation such as 192.168.0.0/24
    'ipWhitelist' => [ '::1', '127.0.0.1' ],

    // Logged in admins can bypass the whitelist
    'allowAdmins' => true,

    // By default, the plugin will throw a exception if the IP isn't in the whitelist
    // If you want to redirect to an url instead, set it here
    'redirectUrl' => null,

    // Or you want to render a template, set it here
    'template'    => null
];

Using Restrict

  1. Copy the sample config file restrict.php into Craft's config folder, by default craft/config.
  2. Add the IPs you want to allow access to the CP, and change the other settings as you see fit.

Brought to you by Superbig, (*9)

The Versions

02/07 2018

dev-master

9999999-dev

Restrict access to the CP based on a IP whitelist

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft restrict

02/11 2017

2.0.0

2.0.0.0

Restrict access to the CP based on a IP whitelist

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft restrict