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

首頁外掛目錄 › Smart User Slug Hider
3,000+
安裝啟用
★★★★
4.9/5 分(55 則評價)
700 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.4+ v4.0.6 上架:2014-10-01

內容簡介

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
本外掛不收集或存儲任何數據
本外掛不向外部服務器發送任何數據

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.0.6) 或搜尋安裝

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

原文外掛簡介

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

延伸相關外掛

文章
Filter
Mastodon