[WordPress] 外掛分享: Maintenance Mode

首頁外掛目錄 › Maintenance Mode
7,000+
安裝啟用
★★★★
4.6/5 分(14 則評價)
42 天前
最後更新
0%
問題解決
WordPress 6.2+ PHP 7.4+ v3.2.1 上架:2020-11-24

內容簡介

此外掛可讓您將 WordPress 網站置於維護模式,並顯示自訂訊息、HTML 頁面或將使用者重定向至靜態頁面或外部網址。它在維護模式啟用時會禁用 WordPress REST API,以保護網站數據的安全。

【主要功能】
• 支援自訂維護訊息或頁面
• 禁用 WordPress REST API 以保護數據
• 可排除特定頁面以保持可見
• 提供 IP 地址白名單功能
• 支援多種維護模式顯示方式

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2.1) 或搜尋安裝

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

原文外掛簡介

This plugin lets you place a WordPress site into maintenance mode and display a custom message, HTML page, or redirect users to a static page or external URL.
It also disables the WordPress REST API while maintenance mode is active, helping keep site data inaccessible during maintenance.
Any logged-in user with administrator privileges can be allowed to view the site, and the required capability can be changed through a filter hook. See the FAQ section for details.
The maintenance mode behavior can be enabled or disabled at any time without losing the configured settings. However, deactivating the plugin is still recommended when maintenance mode is not needed.
The plugin also supports excluding specific pages from maintenance mode so only selected pages remain visible.
When maintenance mode is active, the plugin sends no-cache headers to help prevent caching plugins, CDNs, or browsers from storing responses that would bypass the maintenance page.
When redirect mode is enabled, the plugin can send two different response codes. “200 OK” is suitable for development environments, while “503 Service Temporarily Unavailable” is better when the site is temporarily taken offline. If used for long periods, 503 may negatively affect search engine visibility.
A list of IP addresses can be configured to bypass maintenance mode completely. This is useful for allowing an entire office or client team to access the site without managing individual access keys.
Access keys work by creating a key on the user’s computer that is checked while maintenance mode is active. When a new key is created, a link to store the access key cookie is sent to the email address provided. Access can then be revoked by disabling or deleting the key.
This plugin offers four ways to present the maintenance experience:

A message rendered with WordPress’s wp_die() function, making the experience feel native to WordPress.
A page styled with the active theme’s template.
A custom HTML page.
A redirect to a static page or external URL.

延伸相關外掛

文章
Filter
Mastodon