[WordPress] 外掛分享: Smart User Slug Hider

前言介紹

  • 這款 WordPress 外掛「Smart User Slug Hider」是 2014-10-01 上架。
  • 目前有 3000 個安裝啟用數。
  • 上一次更新是 2024-04-17,距離現在已有 381 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
  • 有 55 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

petersplugins |

外掛標籤

url | user | users | author | authors |

內容簡介

Smart User Slug Hider 外掛可隱藏作者頁面的使用者名稱,以增強安全性。

使用方式

本外掛自動將使用者名稱替代為 16 位元數字代碼字串,不需要任何設定。只需要安裝和遺忘。停用外掛,則恢復 WordPress 的預設行為。

版本 4.0.0 更新注意事項

先前版本使用的函數已在 PHP 7.2 中刪除。2 版本的外掛引入了一個所謂的“未來模式”,使用不同的加密方法可支援 PHP 7.2 及更新版本。

在 4.0.0 版本中,只能使用新方法,舊方法已完全移除。

如果您尚未啟用“未來模式”,則代碼使用者代碼將會更改。很遺憾無法得到相同的結果。

為什麼要使用這個外掛?

WordPress 使用的作者頁面 URL 格式為example.com/author/name,其中name代表使用者的登錄名稱。

這意味著您所有使用者的登錄名稱都是公開可見的,這是一個嚴重的安全漏洞。

Smart User Slug Hider 外掛將所有作者頁面的網址都從example.com/author/john之類的 URL 更改為像example.com/author/e9e716def73f76ac這樣的代碼。

這些代碼是自動生成的,無法通過猜測得知使用者名稱,而 WordPress 的預設 URL 將導致 404(未找到)錯誤。

此外,它可用於BuddyPress會員頁面。

從版本 4.0.0 開始,也已從 body 標籤中刪除了作者類別(請參見此主題)

短碼

本外掛增加了三個可用於文章中的短碼:

[smart_user_slug] - 文章作者的用戶代碼,例如 e9e716def73f76ac
[smart_user_url] - 文章作者個人檔案頁面的 URL,例如 example.com/author/e9e716def73f76ac
[smart_user_link] - 添加指向文章作者個人檔案頁面的鏈結

主題函數

本外掛新增了兩個可用於主題文件中的函數:

get_smart_user_slug( $author_id ) - 為作者獲取用戶代碼,參數$ author_id 是可選的,如果省略,則使用當前文章的作者 ID。
the_smart_user_slug( $author_id ) - 顯示作者的用戶代碼,參數$ author_id 是可選的,如果省略,則使用當前文章的作者 ID。

支援

支援論壇。

影片

如何使用免費的 Smart User Slug Hider 外掛輕鬆關閉 WordPress 安全漏洞

喜歡這個外掛嗎?

我花費了很多寶貴的閒暇時間來開發和維護我的免費 WordPress 外掛。您不需要捐款,不需要錢、啤酒或咖啡。如果您喜歡這個外掛,請幫我一個忙,給它一個好評價。謝謝。

外掛隱私信息

本外掛不設置 cookie
本外掛不收集或存儲任何數據
本外掛不向外部服務器發送任何數據

原文外掛簡介

The Smart User Slug Hider Plugin hides usernames in Author Pages URLs to enhance Security
Retired Plugin
Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.
There will be no more updates and I won’t answer any support questions. Thanks for your understanding.
Feel free to fork this plugin.
Usage
The plugin automatically replaces user names with 16 digits coded strings. There are no settings. Just install and forget. Deactivating the Plugin restores the default WordPress behavior.
Why use this plugin?
WordPress uses the pattern example.com/author/name for author page URLs where name represents the users login name.
This means that the login names from all your users are publicly visible which is a serious security flaw.
The Smart User Slug Hider Plugin changes all author page URLs from e.g. example.com/author/john to something like example.com/author/e9e716def73f76ac.
The codes are generated automatically and its impossible to make conclusions about the user names. The WordPress default URLs will cause a 404 (not found) error.
Shortcodes
The plugin adds three shortcodes you can use in your posts:

[smart_user_slug] – the user slug of the post author – e.g. e9e716def73f76ac
[smart_user_url] – the url of the post author’s profile page – e.g. example.com/author/e9e716def73f76ac
[smart_user_link] – adds a link to the post author’s profile page

Theme Functions
The plugin adds two functions that can be used in theme files:

get_smart_user_slug( $author_id ) to get the user slug for the author – the parameter $author_id is optional, if omitted the author`s ID of the current post is used
the_smart_user_slug( $author_id ) to display the user slug for the author – the parameter $author_id is optional, if omitted the author`s ID of the current post is used

Plugin Privacy Information

This plugin does not set cookies
This plugin does not collect or store any data
This plugin does not send any data to external servers

各版本下載點

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

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


4.0.6 | trunk |

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

  • WP Meta and Date Remover 》移除點擊文章的Meta、作者和日期。 安裝、啟用,完成!, 如何移除文章和頁面的作者Meta和日期?, , 安裝 WP Meta and Date remover。, 啟用外掛。, 選擇隱藏...。
  • Edit Author Slug 》這個外掛程式允許您完全控制使用者永久網址,讓您可以更改作者基底(作者 URL 中「/author/」部分)和作者別名(預設為作者使用者名稱)。您可以在全域設置作...。
  • Hide/Remove Metadata 》Hide/Remove Metadata是一款免費、簡單而非常實用的WordPress外掛,能夠幫助您輕鬆地隱藏或刪除網站上的作者和發布日期。該外掛非常容易使用,僅提供隱藏或移...。
  • Meks Smart Author Widget 》這個簡單的外掛程式讓你可以在 WordPress Widget 中顯示作者/使用者資訊。此外掛的聰明之處在於「自動偵測」使用者/作者,因此它可以選擇性地在單獨的文章頁...。
  • WP Post Author – Boost Your Blog's Engagement with Author Box, Social Links, Co-Authors, Guest Authors, Post Rating System, and Custom User Registration Form Builder 》age/post using the plugin. Users can log in to your website using this block., Widgets, The WP Post Author plugin comes with two widgets, Author Bo...。
  • WP Author, Date and Meta Remover 》即時自訂或刪除您的元數據!WP 作者、日期和元數據移除 Pro+現已上市。WP ADMR Pro+ for Intelligent Meta Data Control。, WordPress 已成為許多線上企業主...。
  • VK Post Author Display 》在內容底部顯示文章作者資訊框。, 任意區段 1。
  • Starbox – the Author Box for Humans 》is plugin., , With Starbox, you'll have a beautiful Author Box that will help your readers connect with the humans behind your content. Plus, you'l...。
  • Head Meta Data 》一款外掛,可通過添加自定義的 標籤到網頁的 部分,提高網頁定義和語義質量。, 基本示例, 在您的網站上顯示任何自定義的 meta 標...。
  • Disable Author Archives 》這是一個簡單輕量的 WordPress 外掛,可以完全停用作者存檔/頁面(無論相應的作者是否存在),並使網頁伺服器返回404狀態碼('未找到')。相關連結也將禁用或...。
  • WP htaccess Control 》WP htaccess Control(也可以稱為 WP htaccess 和 Rewrite Control)提供了一個界面來自定生成WordPress的htaccess文件以及其永久鏈接(作者、分類、歸檔、分...。
  • Fancier Author Box by ThematoSoup 》如果您正在尋找一種方法,讓每個頁面都成為新聯繫和潛在客戶的登陸頁面,那麼您一定會發現 ThematoSoup 的 Fancier Author Box 是非常寶貴的工具。, , 讓每篇...。
  • Guest Author 》這款 WordPress 外掛讓你在任何一篇文章中新增客座作者,而不需要在你的網站上註冊客座作者為使用者。, 功能, , ✍️ 行為就像客座作者是普通作者一樣。, 👤 可...。
  • Authors List 》使用簡碼簡單地顯示文章作者清單或網格,並帶有到其文章彙整頁面的連結。, 簡碼為 [authors_list],並接受以下屬性。, , style(1、2、3), columns (2、3、4...。
  • Author Avatars List/Block 》這個外掛可以方便地在您的 (多使用者) 網站上顯示按用戶角色分組的使用者頭像列表。它還允許您將單個頭像插入到文章或頁面中,以顯示您正在談論的某個人的圖...。

文章
Filter
Mastodon