[WordPress] 外掛分享: RIACO Content Protector

WordPress 外掛 RIACO Content Protector 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「RIACO Content Protector」是 2025-12-03 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-12-04,距離現在已有 83 天。
  • 外掛最低要求 WordPress 6.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

prototipo88 |

外掛標籤

password | hide content | restrict content | content-protection | password protection |

內容簡介

以下是 RIACO Content Protector 外掛的總結:
- RIACO Content Protector 外掛讓您可以使用簡碼來保護 WordPress 內容的任何部分。
- 與内建的文章密碼保護不同,此外掛僅保護您包裹的部分,而不是整個文章。
- 適用於保護付費內容區塊、指南、下載、連結或敏感部分等。

### 問題與答案:
1. RIACO Content Protector 外掛能夠保護 WordPress 內容的哪些部分?
- 可以保護任何部分,使用簡碼包裹起來。

2. 如果使用 RIACO Content Protector 外掛保護內容,當訪客輸入正確密碼後會發生什麼情況?
- 內容將立即解鎖,所有其他受保護的區域也會自動解鎖。
- 可選擇使用 cookie 保留解鎖的內容一段時間。

3. RIACO Content Protector 的安全性功能有哪些?
- 每次請求均使用 Nonces。
- 以安全的 HMAC 標記進行 cookie 認證。
- 清理簡碼屬性。
- 脫離的輸出。
- 不在 cookie 中存儲敏感資料。

原文外掛簡介

RIACO Content Protector allows you to protect any part of your WordPress content using a shortcode.
Unlike the built-in post password protection, this plugin protects only what you wrap, not the whole post.
Perfect for:

Protecting premium blocks of content
Protecting guides, downloads, links, or sensitive sections
Paywall-style snippets

Features

Protect only specific content inside posts/pages
Uses a minimal shortcode:
[riaco_content_protector] Hidden text here [/riaco_content_protector]
Global password stored in plain text, like WordPress page passwords.
AJAX-based form — no page reload
Unlocks all protected sections on the site after correct password
Optional cookie persistence (remember unlocked content for a configurable number of days)
Secure implementation using nonces, hashed tokens, and transients

Important:

The global password is stored in plain text, just like WordPress page passwords. It can be read by user with ‘manage_options’ ability.
If the global password or “Remember Unlocked” duration is changed in settings, all existing unlock cookies are invalidated. Users will need to re-enter the new password to access protected content.

How It Works
Wrap content you want to protect:
[riaco_content_protector]
This text will be hidden until the visitor enters the password.
[/riaco_content_protector]

Set the global password under:
Settings > Content Protector
Visitors will see a modern, styled form.
After entering the correct password:

The content unlocks immediately
All other protected areas unlock automatically
An optional cookie can keep everything unlocked for a chosen number of days

Security

Nonces on every request
Secure HMAC token for cookie authentication
Sanitized shortcode attributes
Escaped output
No sensitive data stored in cookies
Global password stored in plain text, like WordPress page passwords.

Cookie
We use this cookie to understand if user unlocked the content: riaco_cp_unlocked_global.
Style
You can style the content protector box.
It has this class: .riaco-cp--container, so you can add in your style.css:
.riaco-cp--container {
background: #f8f9fa;
padding: 20px;
border: 1px solid #ddd;
border-radius: 6px;
}

You can replace button classes using:
add_filter( 'riaco_cp_button_classes', function( $classes ) {
return 'button my-custom-button-class';
});

Or you can remove button classes:
add_filter( 'riaco_cp_button_classes', function( $classes ) {
// Remove wp-element-button
return str_replace( 'wp-element-button', '', $classes );
});

License
This plugin is licensed under GPLv2 or later.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「RIACO Content Protector」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Show-Hide / Collapse-Expand 》現場演示:, 請至showhide.bunte-giraffe.de參閱我們的外掛現場演示。帳號:demo,密碼:demo。, Show-Hide / Collapse-Expand 允許您輕鬆管理進入您的網站後...。
  • Visibility Control for LearnDash 》Visibility Control for LearnDash 可協助您隱藏 WordPress 頁面上特定準則的訊息和內容。, , 您可以基於以下條件,顯示/隱藏 HTML 元素、選單和其他細節:, ...。
  • Restrict for Elementor 》 Restrict for Elementor 是一款方便您控制和保護Elementor-powered網站的訪問權限的外掛。, 您可以限制、顯示和隱藏小部件、區域和列,分别針對以下用戶:, ,...。
  • Responsive Block Control – Hide blocks based on display width 》Responsive Block Control 將響應式切換添加到區塊編輯器(即 Gutenberg)的“可見性”面板中,以根據屏幕寬度顯示或隱藏區塊。, 設置, 覆蓋現有斷點, function...。
  • Anonymous Restricted Content 》這個外掛就像你預期的那樣簡單!, 而且現在它支援最新的 WordPress Gutenberg 編輯器!, 只需勾選核取方塊,標記要隱藏的內容,就完成了限制訪問。, 如果匿名...。
  • Visibility Control for LearnPress 》Visibility Control for LearnPress 能夠幫助您隱藏 WordPress 頁面上任何特定標准下的信息和內容。, 根據以下標准,您可以顯示/隱藏 HTML 元素、菜單和其他...。
  • Osom Block Visibility 》總結:, Osom Block Visibility 是一個能夠讓你輕鬆控制 WordPress 區塊可見度的外掛。這個外掛不僅可以依照裝置或使用者登入狀態來管理每個區塊的可見度,與...。
  • Show Hide Content 》Show Hide Centent 外掛可將您的內容隱藏在「閱讀更多」按鈕後。點擊浮動按鈕後,您的隱藏內容將在同一頁面上動態顯示。, 它有什麼功能, , 在您的隱藏文本或...。
  • Secret Content 》只需勾選核取方塊 "僅向已登入的訪客顯示此項目",該功能是基於單篇文章 / 單頁面的方式工作,目前尚未支援自訂文章類型。, 您不需要插入自定義功能或短碼,...。
  • Visibility Control for TutorLMS 》以下是關於「Visibility Control for TutorLMS」的總結:, , - 這個外掛幫助您在 WordPress 頁面上隱藏特定標準下的消息和內容。, - 您可以基於以下條件來顯...。
  • Visibility Control for WooCommerce 》Visibility Control for WooCommerce 可以幫助您隱藏 WordPress 頁面上的特定標記、選單和內容。, 您可以根據以下條件顯示/隱藏 HTML 元素、選單和其他細節:...。
  • Restricted Blocks – Conditional Visibility Settings for the Block Editor 》Restricted Blocks 是一款 WordPress 外掛,可根據各種條件限制存取特定的 Gutenberg 區塊。, 例如,您可以基於使用者角色限制內容,基於使用者設備有條件地...。
  • Hide/Show Post/Page Content 》此外掛能夠隱藏或顯示文章或頁面的一部分內容給已登錄或未登錄的使用者。, 還可以選擇已登錄使用者的角色或使用者名稱。, 需要隱藏或顯示的內容必須包含在代...。
  • Truncate Comments 》「Truncate Comments」是一個外掛,能夠隱藏長回應的一部分,只顯示「閱讀更多」的連結,點擊該連結後則會顯示回應的隱藏部分。這個外掛提供類似 Amazon.com ...。
  • ReadMore ReadLess 》顯示必要內容,並允許使用者點擊「閱讀更多」。當訪客在頁面上看到「閱讀更多」連結,在點擊時,剩餘內容將以非常簡單的動畫出現在同一頁面上。, 功能, , 此...。

文章
Filter
Mastodon