Title: Access Code Lite
Author: ExpandOps
Published: <strong>2025 年 9 月 21 日</strong>
Last modified: 2026 年 2 月 3 日

---

搜索插件

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

# Access Code Lite

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

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

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

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

## 描述

Access Code Lite lets you require a simple URL parameter code (e.g. ‘?access_code
=enter123’) before visitors can view your site.
 Simply share the private access
link (e.g. https://example.com?access_code=enter123) that the plugin generates to
any user who you wish to grant access. Ideal for development, staging, previews,
or private sharing without complex authentication.

**Features:**
 – Set a custom access code from the plugin settings page. – Code 
can be 3–12 characters, letters and numbers only. – Session persistence (default):
visitors only need to enter the code once per visit. – Logged-in users, WordPress
login, password reset, admin, AJAX, and cron are always allowed.

**Important:** Access Code Lite is **not a security plugin**.
 It does not encrypt,
hide, or protect sensitive data. It only adds a simple URL parameter check and should
be used for low-risk scenarios like development, staging, or preview access. Do 
not rely on this plugin to secure private or confidential information.

More persistence options (cookies, tokens, etc.) will be added in future versions.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/access-code-lite/` directory,
    or install via the Plugins screen in WordPress.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to **Settings  Access Code Lite** to configure your access code and status.

## 常见问题

### What happens if the code is wrong or missing?

Visitors see an “Access Denied” page with a 403 Forbidden status.

### Do logged-in users need the code?

No. Logged-in users and WordPress authentication endpoints are always allowed.

### How long does the access code last?

By default, for the duration of the visitor’s session (until they close their browser).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Access Code Lite」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/access-code-lite)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * Fixed an issue where root (/) requests could be incorrectly routed to the latest
   post during access-code handling.
 * Refactored access-code request processing for clarity and stability.

#### 1.0.1

 * Added optional cookie-based access persistence.
 * Internal improvements.

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**4 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/access-code-lite/)
 * 标签
 * [access](https://cn.wordpress.org/plugins/tags/access/)[code](https://cn.wordpress.org/plugins/tags/code/)
   [development](https://cn.wordpress.org/plugins/tags/development/)[preview](https://cn.wordpress.org/plugins/tags/preview/)
   [staging](https://cn.wordpress.org/plugins/tags/staging/)
 *  [高级视图](https://cn.wordpress.org/plugins/access-code-lite/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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