[WordPress] 外掛分享: WP Shield

WordPress 外掛 WP Shield 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP Shield」是 2019-11-23 上架。
  • 目前有 40 個安裝啟用數。
  • 上一次更新是 2023-12-06,距離現在已有 515 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

drupalmatts |

外掛標籤

security | development | environments |

內容簡介

此外掛程式使您可以使用 HTTP 認證阻止非生產環境的開發、測試和驗證。
此功能可以透過管理介面控制,同時也可透過在您的配置文件中聲明變數來關閉此項功能。
它使您可以在不必每次手動關閉外掛的情況下,將資料庫還原回非生產環境。

變數:define('WP_SHIELD_UN', '');

在您的 wp_config.php 文件中,需要將此簡單的代碼添加到被您的程式碼管理軟件忽略的檔案中,並將其引入。
這將覆蓋外掛程式設置中的啟用標誌。 在生產中啟用並添加上述代碼。
如果在其他環境中不存在該要求的檔案,它將提示使用者輸入設置的使用者名稱和密碼。

原文外掛簡介

This plugin will allow you to secure your development, staging and UAT environments
with an http authentication block that can be controlled in admin but also turned
off via a declared variable in your config file. It allows you to bring your Database
back to non-production environments without having to physically turn off the plugin each time.
Variable: define('WP_SHIELD_UN', '');
This simple line of code (recommended to add to a file ignored by your code management
software and required into your wp_config.php file) will override the enabled flag
if the plugin’s settings. Enable in production and add the above code. If that
require file doesn’t exist in your other environments, it will prompt users for the
set username and password.

各版本下載點

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

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


1.4 | 1.5 | 1.6 | trunk |

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

  • Enviromon 》這個外掛會在管理頁面加上一個簡單的下拉選單,讓開發者和客戶可以快速了解他們目前所在的環境。。

文章
Filter
Mastodon