[WordPress] 外掛分享: Blog Password Protection – BPP

首頁外掛目錄 › Blog Password Protection – BPP
10+
安裝啟用
尚無評分
244 天前
最後更新
問題解決
WordPress 6.6+ PHP 7.2+ v1.4.2 上架:2025-07-15

內容簡介

總結:Blog Password Protection(BPP)是一個輕量、易於使用的外掛,可幫助您使用密碼保護整個WordPress部落格或特定部分。無論您運行私人日誌、僅限會員的網站還是內部專案部落格,此外掛都能讓您管理可見性和存取權,而無需進行複雜的設置。

問題與答案:
1. BPP外掛的核心功能有哪些?
- 可以將整個部落格或特定分類進行密碼保護。
- 有可自訂標題、訊息和返回按鈕的彈出式登入框。
- 具有可分享的安全存取鏈結(無需密碼)。
- 可根據角色排除(例如,允許編輯或管理員無需登入)。
- 具有供錯誤密碼訊息的餵送保護功能。
- 靈活的Cookie會話生存期(例如,24小時、72小時、7天)。
- 在WordPress管理面板的設置頁面上完全進行管理。

2. BPP外掛的插件結構包含哪些核心檔案?
- plugin_settings_page.php:註冊外掛設置頁面,提供所有外掛選項的UI控制,如密碼設置、Cookie會話生存期、分類保護核取方塊等。
- secure_content.php:實施內容過濾邏輯,偵測受保護的分類或首頁,並顯示彈出式登入介面。
- validation.php:處理透過POST的密碼驗證,設置正確密碼會話的加密Cookie,提供錯誤訊息,並在透過RSS供稿進行存取時提供內容遮罩,驗證會話狀態。

3. BPP外掛的設計者是誰?
- 這個外掛是由Dmytro Zamaraiev設計,用於輕鬆保護部落格。

4. BPP外掛的授權是什麼?
- 這個外掛根據GNU通用公共許可證v3.0許可。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Blog Password Protection – BPP」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Blog Password Protection – BPP is a lightweight, easy-to-use plugin that helps you protect your entire WordPress blog or specific parts of it with a password. Whether you’re running a private journal, members-only site, or internal project blog — this plugin allows you to manage visibility and access without any complex setup.
It includes a customizable popup login prompt, the ability to restrict content by category, bypass access via secure URLs, and selectively disable protection for logged-in users by role.
🛡️ Core Features:

Password-protect the entire blog or specific categories.
Popup login box with custom title, message, and return button.
Shareable secure access link (no password needed).
Role-based exclusion (e.g. allow Editors or Admins without login).
Feed protection and error messages for incorrect passwords.
Flexible cookie session lifetime (e.g. 24h, 72h, 7d).
Fully managed via a settings page in the WordPress admin panel.

Plugin Structure
The plugin consists of the following core files:

plugin_settings_page.php

Registers the plugin settings page under Settings > Password Protection.
Provides UI controls for all plugin options, such as:

Password setting
Cookie session lifetime
Category protection checkboxes
Secure link sharing toggle
User role bypass
Popup customization (title, text, return link)

secure_content.php

Implements content filtering logic.
Hooks into the page rendering process to:

Detect protected categories or homepage
Display the popup login interface

Injects the popup modal HTML and JavaScript dynamically into the frontend.

validation.php

Handles password validation via POST.
Sets encrypted cookies with the correct password session.
Supports error messaging for incorrect attempts.
Provides content masking when accessed through RSS feeds.
Validate session status

Screenshots (screenshot-1.png, screenshot-2.png, screenshot-3.jpeg)

Preview the admin panel settings interface.
Show how the popup form appears on the frontend.
Example of protected content in action.

Credits
This plugin was created by Dmytro Zamaraiev for easy blog protection.
License
This plugin is licensed under the GNU General Public License v3.0.

文章
Filter
Apply Filters
Mastodon