這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Smart User Slug Hider

外掛說明

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

淘汰不用的外掛

這個外掛的開發、維護及技術支援已於 2023 年 10 月全面結束。如果這個外掛符合你的需求,你可以繼續使用。

這個外掛不會有後續更新,我也不會回覆任何技術支援問題,感謝大家的體諒。

歡迎對這個外掛進行分支開發。

使用方式

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

使用這個外掛的原因

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

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

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

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

短代碼

這個外掛加入 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。

外掛隱私權資訊

  • 這個外掛不會設定 Cookie。
  • 這個外掛不會收集或儲存任何資料。
  • 這個外掛不會將資料傳送至網站以外的伺服器。

使用者評論

2024 年 4 月 30 日 3 則留言
What a pity that the author is retiring and feels he can no longer support this plugin because it really did do the job and very well indeed. I do hope someone will pick up the coding and get it working again. I notice now that some of my many websites are working fine but others I’ve had to delete the plugin as it’s causing a critical error making the site completely unusable as it’s unobtainable. There must be a conflict but I can’t see it. Correction is easy, it just means accessing the WP folders, finding this plugin and deleting the folder. I’ve not been able to find another plugin that so simply does what this one does. Any ideas anyone?
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.
閱讀全部 55 則使用者評論

參與者及開發者

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

參與者

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

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

對開發相關資訊感興趣?

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

變更記錄

4.0.6 (2024-04-17) URGENT BUGFIX

  • Bugfix after Cleanup

4.0.5 (2024-04-16) CLEANUP

  • Cleanup

4.0.4 (2022-10-05) FINAL VERSION

  • removed all links to webiste
  • removed request for rating

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