Title: Limit Access WP Plugin
Author: owenconti
Published: <strong>2012 年 1 月 12 日</strong>
Last modified: 2012 年 11 月 11 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/limit-access.svg)

# Limit Access WP Plugin

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

[下载](https://downloads.wordpress.org/plugin/limit-access.zip)

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

 [支持](https://wordpress.org/support/plugin/limit-access/)

## 描述

The Limit Access WP Plugin is a simple plugin that limits the number of IPs that
can be accessing an account at the same time.

Eg. If $allowedIPs is set to 3, the account “JohnDoe” can be logged into from three
separate IPs. When the the account is accessed the fourth time, the user will be
logged out and redirected to a custom page made by you.

If you have any questions or problems with the plugin, please let me know!

## 安装

 1. Install the plugin via automatic method or manual upload method
 2.  a. Create a new page with a slug name: “limited-access”;
     b. Edit this “limited-access” page to have a message for the user for when they get
        logged out.
     c. Activate the plugin.
     d. Congrats you’re done!

Example:

    ```
    Settings:  $allowedIPs = 3;

    The account, "test_user" can be logged in from 3 different IPs, but when the fourth instance is accessed, the user will be logged out and redirected to a page explaining what happened. 
    ```

You have the ability to change the number of allowed IPs, the time each record is
stored in the database, and if there are special circumstances for certain users.

Lines for settings:

    ```
    To change the allowed number of IPs:        line 9;
    To change the time each record is stored:       line 21;
    To alter special circumstances, per user:       line 44 - 50;

    You can add multiple special users by using the OR operator. Eg:

        if ( $user_login == 'admin' || $user_login == 'joe' ) {
            exit;
        }
    ```

## 常见问题

  Why use this plugin?

If you have ever had the need to limit only X-amount of sessions per user, per IP
on a WP site, this plugin will do it for you!

## 评价

此插件暂无评价。

## 贡献者及开发者

「Limit Access WP Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Limit Access WP Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/limit-access)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Initial build

#### 1.1

 * Updated the README

## 额外信息

 *  版本 **1.0**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/limit-access/)
 * 标签
 * [accounts](https://cn.wordpress.org/plugins/tags/accounts/)[limit](https://cn.wordpress.org/plugins/tags/limit/)
   [multiple](https://cn.wordpress.org/plugins/tags/multiple/)[sessions](https://cn.wordpress.org/plugins/tags/sessions/)
   [users](https://cn.wordpress.org/plugins/tags/users/)
 *  [高级视图](https://cn.wordpress.org/plugins/limit-access/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/limit-access/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/limit-access/)