[WordPress] 外掛分享: Role Based Access Manager: Media Protector

前言介紹

  • 這款 WordPress 外掛「Role Based Access Manager: Media Protector」是 2020-07-23 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2021-06-17,距離現在已有 1417 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.4 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

muisit |

外掛標籤

media | roles | security | attachments |

內容簡介

角色基礎存取權限管理員:媒體保護程式

這是一款WordPress外掛,可將存取角色分配給個別檔案。

這個簡單的外掛程式允許管理員(任何具有存取附件/媒體的編輯文章表單權限的人員)根據角色設定存取權限。
該外掛在右側提供了一個「安全」元框,您可以在其中輸入角色名稱並選擇它們(就像在常規文章中添加標籤一樣)。每當訪問者想要從上傳目錄下載或查看檔案或圖像時,將檢查其當前角色與配置角色是否相符。

該外掛會嘗試在元數據表中進行粗略搜索,以查找調整大小和重繪圖像的原始檔。這允許您將部落格文章的原始圖像標記為特定存取權限,同時保護所有縮略圖和其他衍生圖像。請注意,該外掛不會在使用後清潔環境。如果由於某些原因在上傳目錄中仍有未清理的縮略圖,該外掛將允許對其進行存取。

角色

此外掛程式基於角色存取權限管理。這意味著它將嘗試將媒體上指定的角色與使用者可用的角色相匹配。然而,WordPress的功能系統是累積的:一個管理員有較多的特權,如與編輯者相同。通常,使用者只有一個角色。由於該外掛程式不檢查功能,而是根據角色檢查,因此您需要指定所有應該訪問此檔案的角色(包括「管理員」角色)。

或者,您可以向使用者添加次要角色,允許「管理員」成為「訂閱者」。通過這種方式,您只需要將「訂閱者」角色添加到媒體檔中,即可允許所有已註冊成員下載。但是,添加次要角色是一項手動任務。如果您有許多使用者和少量檔案,則可以更輕鬆地指定所有檔案中的所有角色。如果您有許多檔案和少量使用者,則最好使用次要角色分配。如果您有許多檔案和使用者,則應該尋找一種使用某種入職方法自動分配角色的方法。如果需要相關的外掛程式,請給我發消息。

重新導向

該外掛程式會在啟用時向您的「.htaccess」檔案中插入重新導向腳本。這對於「NGinX」並不起作用,在這種情況下,您必須手動插入一個重新導向。自由從「AAM Protected Media Files」說明中複製:

`

location ~* ^/wp-content/uploads/ {
rewrite (?i)^(/wp-content/uploads/.*)$ /index.php?rbam-media=1 last;
return 307;
}
`

該外掛程式將嘗試從原始請求中讀取訪問的檔案,並對其應用基於角色的存取權限管理。

原文外掛簡介

Role Base Access Manager: Media Protector
WordPress plugin to assign access roles to individual files.
This simple plugin allows administrators (anyone with access to the edit-post form for attachments/media) to set access based on roles.
The plugin provides a ‘Security’ meta-box on the right hand side where you can type in role names and select them (much like you add tags
to regular posts). Whenever a visitor wants to download or view a file or image from the uploads directory, his/her current roles are checked
against the configured roles.
This plugin tries to look for originals of resized and rescaled images by making a rough search in the meta data table. This allows you to
mark the original image of a blog entry for specific access and have all thumbnails and other derived images be protected as well. Please note
that this plugin does not clean up after you. If for some reason left-over thumbnails remain in the upload directory, the plugin cannot find
them in the database and will allow access.
Roles
This plugin works based on role access management. That means it will try to match the specified roles on the media with the available roles of a user. However, the capabilities system of WordPress is cumulative: an Administrator has more privileges as an Editor, but at least the
same. Usually, people only have one Role in this system. As this plugin does not check on capabilities, but on roles, you will need to specify
all the roles that should have access to this file (including the ‘administrator’ role).
Alternatively, you can add secondary roles to a User, allowing Administrator to also be a Subscriber. In this way, you only need to add the
Subscriber role to media files to allow it to be downloaded by all registered members. However, adding secondary roles is a manual task. If you have many users and few files, it can be easier to specifiy all roles with the media. If you have many files and few users, you had better use secondary role assignments. If you have many files and many users, you should look into a way to automatically assign roles to people using some sort of on-boarding method. If you need a plugin for that, send me a message.
Redirections
The plugin works by inserting a redirection script in your .htaccess file on activation. This does not work properly for NGinX, in which
case you have to insert a redirection manually. Freely copied from the [https://wordpress.org/plugins/aam-protected-media-files/](AAM Protected Media Files) description:
`

location ~* ^/wp-content/uploads/ {
rewrite (?i)^(/wp-content/uploads/.*)$ /index.php?rbam-media=1 last;
return 307;
}
`
The plugin will try to read the accessed file from the original request and apply role based access management on it.

各版本下載點

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

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


1.0 | 1.1 | 1.1.1 | 1.1.2 | 1.1.3 |

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

  • Members – Membership & User Role Editor Plugin 》Members 是一個基於 WordPress 會員的權限和能力外掛。它提供強大的工具,讓您可以新增角色和能力,並將它們分配給使用者,調整使用者權限來提供最佳的會員體...。
  • If Menu – Visibility control for Menus 》藉由可見度規則,您可以控制網站訪客看到哪些選單項目。以下是一些範例:, , 僅顯示選單項目,當 使用者已登入, 當裝置為行動裝置時,隱藏選單, 顯示選單 給...。
  • View Admin As 》最終的使用者切換器和角色管理員, 此外掛程式將在管理列中新增一個選單項目,您可以透過它在 WordPress 後台中切換視角。, 無需登入其他使用者帳號,您便可以...。
  • Expire Users 》, 重要的安全更新–如果您正在使用版本0.2或更早的版本,請進行升級, , 此外掛允許您為用戶登錄設置到期日期。 您可以設置用戶為:, , 永不到期(默認值), 在...。
  • Restrict Media Library Access 》這個外掛可以限制作者和貢獻者的存取權限,讓他們只能看到自己上傳到媒體庫中的檔案。, 這個外掛有兩個主要用途:當媒體庫過於龐大時,讓作者更容易找到自己...。
  • Privilege Menu 》這個外掛讓你能夠根據用戶的登入狀態、登出狀態或使用者所分配的角色來顯示選單項目。, 此外掛可允許在每個單一選單項目上新增細緻權限,以根據使用者的登入...。
  • HM Multiple Roles 》這個HM Multiple Roles外掛提供使用者介面,允許你為使用者選擇多個角色。, 它隱藏了預設的角色下拉式選單,並在新使用者及更新使用者頁面上顯示角色勾選框清...。
  • If Widget – Visibility control for Widgets 》透過If Widget 插件,您可以控制 widget 顯示的頁面。使用自訂可見性規則(無需 PHP 或技術知識),顯示或隱藏 widget。, 此插件易於使用,每個 widget 都會...。
  • Woocommerce Role Pricing 》根據使用者角色設定自訂價格。, 因為並非所有的客戶都相同,請將他們按角色分組,自動為他們套用折扣。, 分銷商、商務人員、高級客戶,可以建立任意多個角色...。
  • WP Roles at Registration 》這款外掛讓使用者可以在註冊時從已選擇角色列表中選擇自己在網站中的角色。它也適用於 BuddyPress。它提供了一個界面,供管理員選擇在使用者註冊時顯示哪些角...。
  • Total User Count Shortcode 》總用戶數外掛會增加一個短代碼,以顯示您的 WordPress 網站中的用戶帳戶數。沒有管理畫面,只有短代碼 [total_user_count], 新增:取得特定角色的用戶數量, ...。
  • Members – Role Hiearchy 》Members – Role Hierarchy 是為 Members 外掛 開發的附加外掛,可添加階層式角色系統。, 當您希望允許較低級別的使用者(如編輯者)創建、編輯、晉升或...。
  • Multisite User Role Manager 》這個 WordPress 多站架設 (WPMU) 的外掛可以讓超級管理員從網路管理員選單中的一個介面,輕鬆地管理每個使用者的角色和部落格。 您不再需要到每個部落格去更...。
  • Map Cap 》在您的網站上使用自訂文章類型嗎?, 安裝此外掛程式以控制哪些角色可以發佈、編輯和刪除每個自訂類型的文章。, 為了讓這個外掛程式發揮作用,您的自訂文章類...。
  • Custom Access Roles 》2.0.0版新增功能:使用自訂角色的使用者現在只會看到分配給他們的文章或頁面。我們還精簡了管理介面,讓配置更輕鬆,同時新增了額外的說明,以協助您將正確的...。

文章
Filter
Apply Filters
Mastodon