跳到内容

Blog Password Protection – BPP

v1.4.2

Zamaraiev Dmytro · 2025年7月16日 上架

A simple and secure plugin to protect your entire blog or specific categories with a password popup.

正在使用
10+
评分
暂无
累计下载
627
最近更新
2025年7月17日
需要 WordPress 6.6+已测试到 6.8.13PHP 7.2+

截图

Admin settings interface for configuring password, category filters, secure links, and messages.
Admin settings interface for configuring password, category filters, secure links, and messages.
Popup modal shown to visitors when password protection is enabled.
Popup modal shown to visitors when password protection is enabled.
Blog frontend with protected content and password request.
Blog frontend with protected content and password request.

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:

  1. 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)
  2. 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.
  3. 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
  4. 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums