Smart User Slug Hider

外掛說明

Smart User Slug Hider 能在作者頁面網址中隱藏使用者名稱以加強網站安全性。

使用方式

這個外掛會自動使用 16 位編碼字串取代使用者名稱。不需進行額外設定,僅需安裝並啟用。停用外掛後便會復原 WordPress 預設行為。

4.0.0 版更新須知

這個外掛的舊版使用了在 PHP 7.2 已移除的函式。這個外掛的 2.x 版導入稱為「Future Proof」的模式,可以使用不同的加密方法與 PHP 7.2 或更新版本協同作業。

4.0.0 版本僅提供這個新方法,舊式方法已完整移除。

比較遺憾的是,會因此無法取得相同結果。這代表網站如果尚未啟用 Future Proof 模式的話,經過編碼的使用者代稱會產生變更。

使用這個外掛的原因

WordPress 核心程式的作者頁面網址一般都是 example.com/author/namename 代表使用者的登入名稱。

這代表全站使用者的登入名稱為公開可見,算是一個資訊安全問題。

Smart User Slug Hider 會變更作者頁面網址,例如從 example.com/author/john 變更為類似 example.com/author/e9e716def73f76ac 的網址。

經過編碼的使用者代稱為自動產生,且不會與實際使用者名稱有對應關係,但 WordPress 原有的預設使用者代稱網址會產生 404 找不到錯誤。

也能使用於 BuddyPress 會員頁面。

從 4.0.0 版開始,會從 body 標籤中移除 author 類別,請參考這篇文章以進一步了解。

短代碼

這個外掛加入 3 個可用於網站文章的短代碼:

  • [smart_user_slug]:顯示該篇文章作者的使用者代稱,例如 e9e716def73f76ac。
  • [smart_user_url]:顯示該篇文章作者的個人資料頁面網址,例如 example.com/author/e9e716def73f76ac (以文字顯示)。
  • [smart_user_link]:顯示作者名稱,並為作者名稱加入其個人資料頁面連結。

佈景主題函式庫

這個外掛加入 2 個可用於佈景主題檔案的函式:

  • 使用 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。
  • 這個外掛不會收集或儲存任何資料。
  • 這個外掛不會將資料傳送至網站以外的伺服器。

Peters’ Plugins 隱私權資訊頁面

ClassicPress

這個外掛與 ClassicPress 相容。

我們開發的其他外掛

常見問題集

目前尚無。

使用者評論

2023 年 4 月 29 日
Does exactly what it says and minimal set up required. Just what I needed, thanks! I had an idea inspired by a kids' educational app that self-generates memorable passwords that might be good for a future iteration to make it more fun: instead of numbers, a noun phrase with a few random adjectives before. Just a thought.
2023 年 3 月 18 日
I used a different user slug hider in the past and when it stopped being updated I switched to this one.
2023 年 2 月 14 日 1 則留言
Best apps. but needto update for seo that are gone wrong way to user link! please solve that.
2022 年 11 月 19 日 1 則留言
I like the plugin, is easy to use. I hope the plugin keep updated or improvement.
2022 年 6 月 10 日 1 則留言
Thanks for creating this simple and easy to use plugin. Excellent if you want to hide your usernames from the public.
閱讀全部 55 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Smart User Slug Hider〉的開發相關工作。

參與者

〈Smart User Slug Hider〉外掛目前已有 3 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Smart User Slug Hider〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

4.0.3 (2023-03-26)

4.0.2 (2022-05-28)

  • just cosmetics
  • Plugin Foundation updated to PPF08

4.0.1 (2020-08-23)

  • minor UI adjustments

4.0.0 (2019-12-29)

  • remove user class from body tag (See here)
  • always use Future Proof Mode, old method removed
  • rewritten based on my Plugin Foundation PPF03

3 (2018-12-31)

  • Future Safe Mode renamed to Future Proof Mode
  • automatically activate Future Proof Mode if mcrypt is not availabe
  • code improvement
  • UI improvements
  • changed capability to manage_options to display admin page

2 (2018-03-14)

  • Future Safe Mode

1.5 (2017-11-16)

  • faulty display in WP 4.9 fixed

1.4 (2017-07-15)

  • fix for BuddyExtender plugin

1.3 (2017-07-17)

  • BuddyPress compatibility
  • redesigned admin interface
  • code improvement

1.2 (2016-10-04)

  • Shortcodes added
  • Theme Functions added

1.1 (2016-06-30)

  • Code optimization
  • Plugin info page added

1.0 (2014-10-02)

  • Initial Release