Title: Simple Login Lockdown
Author: chrisguitarguy
Published: <strong>2011 年 11 月 29 日</strong>
Last modified: 2012 年 12 月 22 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/simple-login-lockdown.svg)

# Simple Login Lockdown

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

[下载](https://downloads.wordpress.org/plugin/simple-login-lockdown.1.1.zip)

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

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

## 描述

Simple login lock down is a way to protect your WordPress blog from brute force 
login attacks.

How it works:
 1. An attacker attempts to login and fails 2. Simple Login Lockdown
record that failed login 3. After a certain number of failed attemps (defaults to
five), further attemps to access the wp-login.php page are blocked for a time (defaults
to one hour).

If you happen to forget your password and make a failed login attemp yourself, the
plugin will clear out the lockdown count data on successful login.

Note: This uses $_SERVER[‘REMOTE_ADDR’] directly. If you’re behind a proxy (load
balancer, etc), it’s not going to work as expected. Eg. Several folks could be attempting
logins at once, and all fail. As such, the plugin would pick up on all those requests
coming from the same IP — the load balancer — and lock the login down. No good. 
If you’re using a load balancer or in some other situation where you’re behind a
proxy, use this as an example and write your own. Or filter the IP as your desire
using `cd_sll_pre_ip`.

### Hooks

    ```
    simple_login_lockdown_ip -- Alter the requesting IP address. Might be useful if you site is behind a proxy or load balancer.

    simple_login_lockdown_allow_ip -- Allows you to "whitelist" an IP address. It first when a log attempt fails before the attempt count is incremented. Return true and no count will be taken for the IP.

    simple_login_lockdown_should_die -- A filter that allows you to prevent the login page from `die`ing if a the requesting IP is temporarily blacklisted or the login limit has been reached.

    simple_login_lockdown_count_reached -- Fires when the requesting IP has reached its count and will be added to the blacklist for your time limit.

    simple_login_lockdown_attempt -- Fires when a login attempt is made but the requestin IP is blocked to to excessive requests.

    simple_login_lockdown_response -- Change the HTTP response code of that gets sent when a blacklisted IP attempts to login.

    simple_login_lockdown_time_values -- Allows you to alter values in the login lockdown time dropdown in the admin area.
    ```

## 屏幕截图

[⌊The plugin options on the Privacy Settings page⌉⌊The plugin options on the Privacy
Settings page⌉[

The plugin options on the Privacy Settings page

## 安装

Install via the WordPress admin or…

 1. Click on the big orange button that says download
 2. Unzip the file, and upload the `simple-login-lockdown` folder to your wp-content/
    plugins directory
 3. Login into your website and activate the plugin!

## 常见问题

  Installation Instructions

Install via the WordPress admin or…

 1. Click on the big orange button that says download
 2. Unzip the file, and upload the `simple-login-lockdown` folder to your wp-content/
    plugins directory
 3. Login into your website and activate the plugin!

  I got locked out, what do I do?

Simple answer: wait. The lockdown will clear in the time you specified, just visit
the site again later.

If you absolutely need to get into your site right now, you can can do one of two
things…
 1. Fire up your FTP client and rename the `simple-login-lockdown` plugin
folder 2. Login into your favorite database administration tool (probably PHPMyAdmin)
and search for `locked_down_` in the `option_name` column of the `wp_options` table.
Delete the records you find — they should be “transients”.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

「Simple Login Lockdown」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/simple-login-lockdown/contributors)
为本插件所做的贡献。

[帮助将「Simple Login Lockdown」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-login-lockdown)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

 * Fixed a bug that caused lock down length to be much shorter than expected
 * Fixed some warnings in the admin area due to a non-existed class property

#### 1.0

 * Refactored code
 * Added a ton of filters/actions

#### 0.4

 * Added plugin options page

#### 0.3

 * small bug fix

#### 0.2

 * New function to get the IP address.
 * Added filter to IP for flexibility with proxies, etc.

#### 0.1

 * Proof of concept
 * no options page

## 额外信息

 *  版本 **1.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 3.2.0 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-login-lockdown/) 和 [Hebrew](https://he.wordpress.org/plugins/simple-login-lockdown/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/simple-login-lockdown)
 * 标签
 * [login](https://cn.wordpress.org/plugins/tags/login/)[security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-login-lockdown/advanced/)

## 评级

 4.4 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.pwsausa.org/)