PHPackages                             jalendport/craft-lockout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. jalendport/craft-lockout

ActiveCraft-plugin[Admin Panels](/categories/admin)

jalendport/craft-lockout
========================

Temporarily lock certain users out of the control panel.

2.0.0(2y ago)53.7k↓50%3MITPHP

Since Nov 27Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/jalendport/craft-lockout)[ Packagist](https://packagist.org/packages/jalendport/craft-lockout)[ Fund](https://www.paypal.me/jalenconner)[ GitHub Sponsors](https://github.com/jalendport)[ RSS](/packages/jalendport-craft-lockout/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (9)Used By (0)

[![icon](src/icon.svg)](src/icon.svg)Lockout
============================================

[](#lockout)

*Temporarily lock certain users out of the control panel.*

Installation
------------

[](#installation)

### Requirements

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

### Plugin Store

[](#plugin-store)

Log into your control panel and click on 'Plugin Store'. Search for 'Lockout'.

### Composer

[](#composer)

1. Open your terminal and go to your Craft project:

```
cd /path/to/project
```

2. Then tell Composer to load the plugin:

```
composer require jalendport/craft-lockout
```

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Lockout.

Using Lockout
-------------

[](#using-lockout)

When Lockout is enabled, any non-admin users will be effectively blocked from accessing the CP. Useful if you ever need to make some structural changes and want to prevent new content from being added to the production DB during that time.

### Settings

[](#settings)

To enable Lockout, simply toggle the lightswitch. It's that simple!

There is also a message setting where you can pass a custom message to the error screen your users will see when they are locked out.

### Widget

[](#widget)

[![Widget UI](resources/img/widget.png)](resources/img/widget.png)

In cases where you're using [Project Config](https://docs.craftcms.com/v3/project-config.html) and `allowAdminChanges` is set to `false` you won't be able to enable/disable Lockout via the plugin settings. Instead you'll want to add the Lockout widget to your CP dashboard - it provides the same functionality as the lightswitch on the plugin settings page.

### CLI

[](#cli)

Lockout also provides two console commands for use in your deployment scripts:

```
./craft lockout/lockout/enable      // Restrict non-admin users from accessing the CP.

./craft lockout/lockout/disable     // Allow non-admin users to access the CP.

```

Found a Bug? Need Support?
--------------------------

[](#found-a-bug-need-support)

Please open an [issue](https://github.com/jalendport/craft-lockout/issues) describing what's going wrong.

Roadmap
-------

[](#roadmap)

Some things to do, and ideas for potential features:

- Provide the ability to customize which users are locked out or whitelisted.

If there's a feature you think should be added to Lockout, please open an [issue](https://github.com/jalendport/craft-lockout/issues). PRs are also welcome!

---

### Contributors

[](#contributors)

- Plugin development: [Jalen Davenport](jalendport.com) / @jalendport
- Icon: [Kiran Joseph](https://thenounproject.com/term/lock/680647/) from the [Noun Project](https://thenounproject.com)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~509 days

Total

5

Last Release

327d ago

Major Versions

1.0.2 → 2.0.02023-06-09

2.0.0 → 3.0.0-beta.12025-06-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6537823?v=4)[Jalen Davenport](/maintainers/jalendport)[@jalendport](https://github.com/jalendport)

---

Top Contributors

[![jalendport](https://avatars.githubusercontent.com/u/6537823?v=4)](https://github.com/jalendport "jalendport (19 commits)")[![lukasIO](https://avatars.githubusercontent.com/u/12997837?v=4)](https://github.com/lukasIO "lukasIO (1 commits)")[![mnlmaier](https://avatars.githubusercontent.com/u/15020024?v=4)](https://github.com/mnlmaier "mnlmaier (1 commits)")

---

Tags

cmsUsersadminmaintenanceCraftcraftcmscraft-pluginlockout

### Embed Badge

![Health badge](/badges/jalendport-craft-lockout/health.svg)

```
[![Health](https://phpackages.com/badges/jalendport-craft-lockout/health.svg)](https://phpackages.com/packages/jalendport-craft-lockout)
```

###  Alternatives

[verbb/cp-nav

Manage the Craft Control Panel navigation.

128186.9k3](/packages/verbb-cp-nav)[wbrowar/craft-admin-bar

Front-end shortcuts for clients logged into Craft CMS.

3212.1k](/packages/wbrowar-craft-admin-bar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
