跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Private Website – Login Required

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Private Website – Login Required

由 roehler 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

Private Website – Login Required is a simple and straightforward WordPress plugin designed to restrict access to your website. By activating this plugin, users must be logged in to view any content on your site. This is ideal for websites that host sensitive or exclusive content and want to ensure that only authenticated users can access it.

There are no complicated settings to configure. Simply activate the plugin to enforce the login requirement and deactivate it to remove the restriction.

This plugin was developed by Robin Oehler.

Privacy Policy

Private Website – Login Required uses Appsero SDK to collect some telemetry data upon user’s confirmation. This helps us to troubleshoot problems faster & make product improvements.

Appsero SDK does not gather any data by default. The SDK only starts gathering basic telemetry data when a user allows it via the admin notice. We collect the data to ensure a great user experience for all our users.

Integrating Appsero SDK DOES NOT IMMEDIATELY start gathering data, without confirmation from users in any case.

Learn more about how Appsero collects and uses this data.

Bugs & Feedback

Your feedback is important to me. If you find mistakes, have wishes, ideas, or suggestions, please send an email to mail@roehler.nrw.

Legal notice (German): https://roehler.nrw/impressum/

You are free to use it on any website across countries to protect the privacy of your users.

Note: Activating this plugin cannot guarantee that your website is completely compliant with GDPR. When using Google Analytics, Facebook pixels, or other similar tools, additional measures may need to be taken.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/private-website directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Once activated, the plugin will automatically restrict content to logged-in users only.
  4. To remove the login requirement, simply deactivate the plugin.

常見問題集

What does this plugin do?

This plugin restricts access to your website content to only logged-in users. If a user is not logged in, they will be redirected to the login page.

Are there any settings I need to configure?

No, there are no settings to configure. Simply activate the plugin to enforce the login requirement and deactivate it if you no longer want to restrict access.

Can I allow access to specific pages without login?

Yes! Since version 0.3.0 you can use the private_website_allowed_pages filter to whitelist additional page filenames and private_website_allowed_rest_routes to open specific REST API routes. Add these filters in your theme’s functions.php or a custom plugin.

How do I stop the login requirement?

To stop requiring a login to access your site, simply deactivate the plugin from the ‘Plugins’ screen in WordPress.

使用者評論

Macht, was es soll

josephion 2024 年 10 月 24 日
Super simples Plugin! Genau was ich brauchte. An machen und Homepage nur per Login sehen.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Private Website – Login Required〉的開發相關工作。

參與者
  • roehler

將〈Private Website – Login Required〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

0.3.0

  • Security: REST API no longer open to unauthenticated requests; only auth-related and oembed routes are allowed (filterable via private_website_allowed_rest_routes).
  • Security: Added X-Frame-Options: DENY header on redirect responses to prevent clickjacking.
  • Security: Explicit HTTP 302 status code on login redirects.
  • New: Allowed login pages are now filterable via private_website_allowed_pages.
  • Improved: DRY slug derivation via helper function; consistent WPCS formatting (tabs, spacing).
  • Fixed: Namespace check now uses correct single backslash (Appsero\Client).
  • Fixed: Removed closing ?> tag to prevent accidental whitespace output.

0.2.9

  • Ask for Appsero consent again after each admin login until consent is granted (re-prompts post-login).

0.2.8

  • Show tracking status badge directly in the plugin description (Plugins screen).

0.2.7

  • Add opt-in/out action link directly in the Plugins screen for this plugin (enables/disables Appsero tracking).

0.2.6

  • Add uninstall.php for clean uninstall (removes Appsero options and clears scheduled events; multisite-aware).

0.2.5

  • Add Appsero SDK (opt-in telemetry only), with admin notice and weekly schedule.
  • Add Privacy Policy section to readme; no data is collected without consent.
  • Minor refactors; keep strict redirects and security hardening from 0.2.4.

0.2.4

  • Enhanced security with better input validation and sanitization.
  • Improved code structure following WordPress coding standards.
  • Added proper internationalization support with textdomain.
  • Better handling of AJAX requests, REST API, and cron jobs.
  • Added activation checks for minimum WordPress and PHP versions.
  • Updated contributor information to link to author website.
  • More efficient redirect logic with wp_safe_redirect.

0.2.3

  • Improved function naming to follow WordPress coding standards and prevent conflicts.
  • Fixed SVN repository structure and tag management.
  • Reduced plugin tags to comply with WordPress.org requirements (maximum 5 tags).

0.2.2

  • Updated “Tested up to” for WordPress 6.8.1.
  • Minor code enhancements for redirect URL generation and logic.

0.2.1

  • Internal code refinements and minor updates.

0.2.0

  • Updated compatibility information (previously tested up to WordPress 6.7.2).
  • General maintenance and minor improvements.

0.1

  • Initial release of the plugin.
  • Basic functionality to require login for viewing website content.

中繼資料

  • 版本 0.3.0
  • 最後更新 1 個月前
  • 啟用安裝數 200+
  • WordPress 版本需求 5.0 或更新版本
  • 已測試相容的 WordPress 版本 6.8.5
  • PHP 版本需求 7.0 或更新版本
  • 語言
    English (US)
  • 標籤:
    loginmembersprivateRestrict accessuser authentication
  • 進階檢視

評分

5 星,滿分為 5 星
  • 1 個 5 星使用者評論 5 星 1
  • 0 個 4 星使用者評論 4 星 0
  • 0 個 3 星使用者評論 3 星 0
  • 0 個 2 星使用者評論 2 星 0
  • 0 個 1 星使用者評論 1 星 0

Your review

查看全部使用者評論

參與者

  • roehler

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.