Title: Simple User Locking
Author: Blackbam
Published: <strong>2019 年 7 月 4 日</strong>
Last modified: 2019 年 7 月 4 日

---

搜索插件

![](https://ps.w.org/simple-user-locking/assets/banner-772x250.jpg?rev=2117534)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-user-locking/assets/icon-128x128.png?rev=2117555)

# Simple User Locking

 作者：[Blackbam](https://profiles.wordpress.org/blackbam/)

[下载](https://downloads.wordpress.org/plugin/simple-user-locking.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-user-locking/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-user-locking/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-user-locking/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-user-locking/#developers)

 [支持](https://wordpress.org/support/plugin/simple-user-locking/)

## 描述

Prevent users from logging into your WordPress installation for a certain timeframe
or permanently. Works also great with the multisite user management area.

The locked users are easily manageable within the users overview page. The settings
are within the user edit pages.

No user can lock himself. No user with a lower role can lock a higher user and administrators
in a network can not lock super administrators.

If a user is locked, he is instantly logged out of any session until the lock expires
or is removed.

No useless overhead, no ads. Just a tiny, but very effective plugin to keep your
website secure.

Use cases:

 * you do not want to delete a user, but you want to make sure he can not access
   the site (at least for a certain timeframe)
 * an employee leaves your company and access should be removed, but you want to
   keep his user as an author in the system
 * you want to punish a certain user which did bad things for a certain timeframe
 * you want only few persons to have access to your WordPress site in order to minimize
   risk of incidents
 * … or maybe some other use case

### Feature requests

Currently none.

## 屏幕截图

[⌊Lock settings in the user edit screen⌉⌊Lock settings in the user edit screen⌉[

Lock settings in the user edit screen

[⌊User overview⌉⌊User overview⌉[

User overview

[⌊Trying to login with a locked account⌉⌊Trying to login with a locked account⌉[

Trying to login with a locked account

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Navigate to a users profile you want to lock (also possible in network admin) and
    adjust the settings accordingly.

## 常见问题

Currently none.

## 评价

![](https://secure.gravatar.com/avatar/d5a5c9cf6d94c8c10375b6fb48c0cc28e9df3c4d446ca18611bb544b274dd20e?
s=60&d=retro&r=g)

### 󠀁[Already successfully used in live environments](https://wordpress.org/support/topic/already-successfully-used-in-live-environments/)󠁿

 [Blackbam](https://profiles.wordpress.org/blackbam/) 2019 年 7 月 4 日

The motivation behind writing this plugin was very practical – how can I lock users
within my WordPress site without deleting them. During the time writing this it 
has already been used in live environments for two months, without any complaints–
doing what it should do. Therefore I am satisfied with my initial work.

 [ 阅读所有0条评价 ](https://wordpress.org/support/plugin/simple-user-locking/reviews/)

## 贡献者及开发者

「Simple User Locking」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Blackbam ](https://profiles.wordpress.org/blackbam/)

[帮助将「Simple User Locking」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-user-locking)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-user-locking/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-user-locking/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-user-locking/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-user-locking/)。

## 更新日志

#### 1.0

 * Initial version

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-user-locking/)
 * 标签
 * [authentication](https://cn.wordpress.org/plugins/tags/authentication/)[control](https://cn.wordpress.org/plugins/tags/control/)
   [locking](https://cn.wordpress.org/plugins/tags/locking/)[security](https://cn.wordpress.org/plugins/tags/security/)
   [user](https://cn.wordpress.org/plugins/tags/user/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-user-locking/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/simple-user-locking/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-user-locking/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-user-locking/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-user-locking/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-user-locking/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-user-locking/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-user-locking/reviews/)

## 贡献者

 *   [ Blackbam ](https://profiles.wordpress.org/blackbam/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-user-locking/)