Title: ContentProtector &#8211; password protect your page, post or text
Author: Anton
Published: <strong>2025 年 1 月 7 日</strong>
Last modified: 2025 年 1 月 7 日

---

搜索插件

![](https://ps.w.org/contentprotector/assets/banner-772x250.png?rev=3218554)

![](https://ps.w.org/contentprotector/assets/icon-256x256.png?rev=3218554)

# ContentProtector – password protect your page, post or text

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

[下载](https://downloads.wordpress.org/plugin/contentprotector.1.0.zip)

[实时预览](https://cn.wordpress.org/plugins/contentprotector/?preview=1)

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

 [支持](https://wordpress.org/support/plugin/contentprotector/)

## 描述

**ContentProtector** is a lightweight and flexible plugin that allows you to protect
your WordPress content with passwords. You can protect an entire post or page, or
just a specific portion of the content.

### Features

 * **Global Protection**: Set a global password for all posts or pages.
 * **Partial Content Protection**: Use a shortcode to protect only a specific part
   of your content.
 * **Customizable**: Easy to set up with a clean and intuitive admin interface.
 * **Secure**: Uses WordPress Nonces and cookies for secure password handling.

### How It Works

 1. Use the shortcode `[cpwp_protect password="your_password"]` to protect an entire
    post or page.
 2. Use `[cpwp_protect_content password="your_password"]` to protect only a portion
    of your content.

Example for partial content protection:
 `html [cpwp_protect_content password=”pass”]
This content is protected by a password. Enter the password to view it. [/cpwp_protect_content]

## 屏幕截图

 * [[
 * Admin settings page with configuration options.
 * [[
 * Password protect block

## 安装

Download the plugin and upload the contentprotector folder to the /wp-content/plugins/
directory.
 Activate the plugin through the “Plugins” menu in WordPress. Go to the
ContentProtector menu in the WordPress dashboard to configure settings.

## 常见问题

### Can I use different passwords for different posts or content?

Yes! Each shortcode instance can have its own password.

### What happens if a user enters the wrong password?

The plugin will show an error message and prompt the user to try again.

### Can I use this plugin on a multisite installation?

Yes, ContentProtector works perfectly on WordPress multisite.

## 评价

此插件暂无评价。

## 贡献者及开发者

「ContentProtector – password protect your page, post or text」是开源软件。 以下
人员对此插件做出了贡献。

贡献者

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

[帮助将「ContentProtector – password protect your page, post or text」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/contentprotector)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

Initial release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **5,000+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/contentprotector/)
 * 标签
 * [content-protection](https://cn.wordpress.org/plugins/tags/content-protection/)
   [password](https://cn.wordpress.org/plugins/tags/password/)[Password Protect](https://cn.wordpress.org/plugins/tags/password-protect/)
   [protection](https://cn.wordpress.org/plugins/tags/protection/)[restrict content](https://cn.wordpress.org/plugins/tags/restrict-content/)
 *  [高级视图](https://cn.wordpress.org/plugins/contentprotector/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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