跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

east115 Account Guard

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

east115 Account Guard

作者:East115
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Membership sites lose revenue every day to shared accounts — one login passed around an office, posted in a group chat, or resold. This plugin limits account sharing using WordPress native session management (WP_Session_Tokens). No polling, no extra server load.

Three configurable strategies:

  • Kick oldest (kick, default) — a new login instantly terminates all other sessions of that account. The old device is logged out on its next request. Smoothest experience, similar to single-device streaming policies.
  • Exclusive online (deny) — while any device is active, new-device logins are rejected outright. Strictest mode.
  • Device binding limit — each account can bind up to N devices (default 2), slots auto-release after X days (default 30). An anonymous device identifier cookie is set on first login.

More features:

  • Heartbeat detection: every visit refreshes activity time (60-second write throttle, no slowdown)
  • Admin exemption: administrators can bypass all restrictions
  • Unbind tool: one click in the admin to clear a user’s device bindings and force all devices offline — perfect for device-change appeals
  • Zero external dependencies: no third-party requests, all data stays in your database

The plugin interface is written in Chinese and fully internationalized (text domain: east115-account-guard). Translations for other languages are welcome via translate.wordpress.org.

Privacy

This plugin collects and transmits no personal data. The only data stored is an anonymous device-identifier cookie (eastacgu_device) in the browser and device binding timestamps in user meta. Uninstalling removes all settings and binding data.

安装

  1. Upload and activate the plugin in the admin.
  2. Go to Settings – Prevent Account Sharing, pick a strategy and device limit.
  3. To handle device-change appeals, use the unbind tool at the bottom of the settings page.

常见问题

A member changed phones and is now locked out. What now?

Go to Settings – Prevent Account Sharing, enter the user’s ID or login name in the unbind tool, and clear their bindings. They log in again on the new device.

Does clearing browser cookies count as a new device?

Yes. The device identifier lives in a browser cookie; clearing cookies, switching browsers, or incognito mode all register as new devices. This is the intended anti-sharing behavior. Legitimate users can be unbound by an admin.

Does this plugin set cookies?

Yes. One anonymous cookie named eastacgu_device (random 32-character hex string, HttpOnly, one-year lifetime). It only distinguishes devices, contains no personal information, and is never sent to third parties.

Will it slow down my site?

No. Heartbeat writes are throttled to once per 60 seconds per session; every check uses native WordPress sessions and user meta. No polling, no external requests.

评价

此插件暂无评价。

贡献者及开发者

「east115 Account Guard」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • East115

帮助将「east115 Account Guard」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.2.1

  • Removed the Author URI header (connection to the site is restricted for some regions, which triggered a review error)
  • Renamed all function/class/option/menu prefixes from pas_ to the unique eastacgu_ prefix (previous prefix was too short and risked conflicts)
  • Added automatic migration of settings, device bindings, and device cookies from versions 1.2.0 and earlier

1.2.0

  • Renamed to a distinctive name and slug: east115 Account Guard / east115-account-guard
  • Removed load_plugin_textdomain() — translations auto-load for WordPress.org-hosted plugins since WP 4.6

1.1.0

  • Added internationalization (i18n) — all strings translatable
  • Added uninstall cleanup (uninstall.php)
  • Added plugin header metadata

1.0.0

  • Initial release: kick-oldest, device binding limit, concurrent denial, heartbeat detection, admin exemption, admin unbind tool

额外信息

  • 版本 1.2.1
  • 最后更新:1 周前
  • 活跃安装数量 不到10
  • WordPress 版本 5.2 或更高版本
  • 已测试的最高版本为 7.1
  • PHP 版本 7.2 或更高版本
  • 语言
    English (US)
  • 标签
    concurrent loginloginmembershipsecurity
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • East115

支持

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

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.