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.

使用

本插件自动以16位代码串替换用户名。无需设置,开箱即用。取消激活插件会恢复默认的 WordPress 配置。

为什么使用这个插件?

WordPress 的作者页面链接使用诸如example.com/author/name这样的形式,其中的name表示用户的登录名。

这意味着您网站的所有用户的用户名将公开可见,这是一个很大的安全隐患。

Smart User Slug Hider插件将所有像example.com/author/john的作者页面链接变成类似example.com/author/e9e716def73f76ac的样式。

这个代码是自动生成的,且无法逆推出用户名。访问 WordPress 默认的 URL 将提示 404(未找到)错误。

短代码

该插件添加了三个可在文章中使用的短代码:

  • [smart_user_slug] —— 文章作者个人资料页面的 user slug —— 例:e9e716def73f76ac
  • [smart_user_url] —— 文章作者个人资料页面的 url —— 例:example.com/author/e9e716def73f76ac
  • [smart_user_link] —— 添加一个通向文章作者的个人资料页面的链接

主题函数

本插件添加了两个可在主题文件中使用的函数:

  • get_smart_user_slug( $author_id ) 用来获取 the user slug for the author —— 作者的user slug —— 其中的 $author_id 参数是可选的, 如果省略,则获取当前文章的作者 ID 。
  • the_smart_user_slug( $author_id ) 用来显示作者的user slug —— 其中的 $author_id 参数是可选的, 如果省略,则显示当前文章的作者 ID 。

插件隐私信息

  • 本插件不设置 cookies
  • 本插件不会收集或存储任何数据
  • 本插件不会将任何数据传输到其他服务器上

评价

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.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)

  • 用户界面小幅优化

4.0.0 (2019-12-29)

  • 从 body 标签中删除 user 类 (参见此处)
  • 总是使用未来验证模式,旧模式已移除
  • 基于我的 PPF03 插件框架重写

3 (2018-12-31)

  • 未来安全模式(Future Safe Mode)更名为未来验证模式(Future Proof Mode)
  • 如果 mcrypt 不可用则自动开启未来验证模式
  • 核心优化
  • 用户界面优化
  • 调整了 manage_options 的性能以显示管理页面

2 (2018-03-14)

  • 未来安全模式

1.5 (2017-11-16)

  • WP 4.9 中的错误显示已修复

1.4 (2017-07-15)

  • 和 BuddyExtender 插件相关的修复

1.3 (2017-07-17)

  • BuddyPress 兼容性
  • 重新设计的管理界面
  • 核心优化

1.2 (2016-10-04)

  • 添加短代码
  • 添加主题函数

1.1 (2016-06-30)

  • 代码优化
  • 添加插件信息页面

1.0 (2014-10-02)

  • 初始版本