[WordPress] 外掛分享: Console Log Cloaking

首頁外掛目錄 › Console Log Cloaking
WordPress 外掛 Console Log Cloaking 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
2251 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.1+ v1.0.0 上架:2020-01-02

內容簡介

這個 Console Log Cloaking 的外掛可讓網站管理員阻擋使用者和訪客顯示在控制台的訊息。

在頁面載入和瀏覽的不同階段,log 訊息會顯示在瀏覽器控制台 (F12) 中。在許多情況下,log 訊息是瀏覽器發出的警告或追蹤訊息,以幫助使用者追蹤顯示問題的起源,例如長等待時間或不規則的操作結果。這些訊息還可能是粗心的 console.log " happy " 的開發者追蹤自己的程式碼變數的副作用。在幾乎所有情況下,最好避免顯示這些訊息給網站的訪問者,因為內容通常讓他們深入了解應用程式的內部運作 (例如內部 ID、資料庫連接串等) ,並可能導致嚴重的安全問題。

預設情況下 (首次啟動時),只有主要網站管理員能在控制台中看到log 訊息。管理員可以進一步微調外掛的行為,以啟用特定使用者角色 (開發人員、編輯人員等) 的 log 訊息顯示,並決定要隱藏哪種類型的訊息。預設情況下,所有訊息類型都被隱藏。

要配置外掛的行為,只需從側邊欄訪問 Console Log Cloaking 選單即可。

如果需要相關功能,或者遇到外掛的任何問題,可以通過評論或官方外掛頁面聯繫作者。

捐贈

不需要。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Console Log Cloaking」→ 直接安裝(推薦)

原文外掛簡介

The Console Log Cloaking plugin allows site administrators to block the display of console messages for users and visitors.
Log messages appear in the browser console (F12) at different stages of the page loading and viewing experience. In many cases, log messages are warning or tracking messages issued by the browser to help users track the origin of display problems, such as long wait time or irregular action outcomes. Those messages can also be a side-effect of careless, console.log-happy developers tracking their own code variables. In almost all cases, it is best to avoid displaying those messages to the site’s visitors, as the content often allows them insights into the inner workings of an application — such as internal IDs, database connection strings, etc. — and can lead to serious security problems.
By default (upon first activation), noone but the main site administrator will see log messages in the console. Administrators can further fine-tune the behavior of the plugin to enable the display of log message to specific user roles (developers, editors, etc.), as well as determine which type of messages should be hidden. By default, all message types are cloaked.
To configure the behavior of the plugin, simply access the Console Log Cloaking menu from the sidebar.
This plugin will be updated to account for changes in future versions of WordPress, if necessary.
If you encounter any problems with the plugin, or need extra related functionality, feel free to contact the authors through the comments or the official plugin page.
Donations
None needed.

文章
Filter
Apply Filters
Mastodon