注册IPs(Register IPs)

描述

垃圾邮件是一回事,但巨魔和袜子木偶是另一回事。 有时人们只是决定他们会成为混蛋并创建多个帐户来骚扰诚实的用户。 此插件通过记录创建时使用的IP地址来帮助您进行反击。

以管理员身份登录您的 WP 安装,您可以查看他们的个人资料或用户表以了解它是什么。 出于安全目的,当用户查看自己的个人资料时,不会向他们显示用户自己的 IP。

隐私说明

此插件在 signup_ip 键下向新用户的 wp_usermeta 数据添加附加数据。 此数据直接与用户帐户相关联,并且只能通过数据库进行编辑。 如果用户帐户从站点中删除,数据将自动删除。

不会传输任何外部数据,所有这些都保留在您的安装中。

屏幕截图

  • 单个站点(常规用户菜单)
  • 多站点(网络管理员->用户菜单)

安装

无需特殊激活。

常见问题

Why do some IPs have an asterisk by them?

Due to the nature of how IPs can be tracked, there is always room for error and manipulation by the unsavory sort.

It is absolutely possible that someone may falsify the data by editing the x-forwarded-for header, causing the saved IP to be incorrect. Sadly, this is not something that is trivial to fix as doing so can cause anyone on a Managed WordPress host with a proxy service to break. If you don’t know that’s the case, disabling support for x-forwarded-for may result in all the IPs having the same value as your server.

It is, therefore, my intentional choice to not remove support, but instead to flag all IPs that have been set via x-forwarded-for with the aforementioned asterisk.

If, however, YOU wish to prohibit the x-forwarded-for header, you may do so by adding this define to your wp-config.php file:

define( 'REGISTER_UP_NO_FORWARD', true );

There are no plans to incorporate this into an option page at this time.

为什么有些用户会说“无记录”?

这是因为用户是在安装和/或激活插件之前注册的。

Why are all the IPs the same?

Likely you’ve disabled the use of the x-forwarded-for header.

Either delete this line from your wp-config.php file, or change true to false:

define( 'REGISTER_UP_NO_FORWARD', true );

Be aware, setting this to true means people can fake IPs more easily.

谁能看到IP?

管理员和网络管理员。

这适用于多站点吗?

Yes it does! In fact, this was designed for multisite.

As it happened, there was already a plugin called “Register IP”, but it didn’t work on MultiSite. I was originally just going to make this a MultiSite-only install, but then I thought ‘Why not just go full bore!’ Of course, I decided that AFTER I requested the name and you can’t change names. So you can laugh.

这适用于BuddyPress吗?

它适用于多站点上的 BuddyPress,所以我认为单站点也是。 如果没有,请告诉我!

这让我的屏幕太宽了!

That’s what happens when you add in more columns. You can remove them from view if you want.

多站点和单站点安装之间有什么区别?

在多站点上,只有有权访问网络管理员的网络管理员 -> 用户可以在用户列表中看到 IP。

如何过滤IP,比如链接到IP检查器?

有过滤器! 把它扔到一个 MU 插件中:

function filter_ripm_show_ip($theip) {
    $theip = '<a href="https://duckduckgo.com/?q='.$theip.'">'.$theip.'</a>';
    return $theip;
}
add_filter('ripm_show_ip', 'filter_ripm_show_ip');

评价

2022年12月24日
Works exactly as described. And super support! Thanks!
2021年8月23日 1 回复
A nice plugin that helps to make my site a bit more secure. One remaining wish, I would like to see the IP address as well in the Edit user profile function, so I can easily copy/paste it.
2020年12月8日
Thanks for this great plugin it works as charm!!! Great Job!
阅读所有19条评价

贡献者及开发者

“注册IPs(Register IPs)” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“注册IPs(Register IPs)”插件已被翻译至5种本地话语言。 感谢所有译者为本插件所做的贡献。

将“注册IPs(Register IPs)”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.9.1

  • 23 December 2022 by Ipstenu
  • Bugfix

1.9.0

  • 21 December 2022 by Ipstenu
  • Update re X-HEADER

1.8.3

  • 21 November 2022 by Ipstenu
  • PHPCS
  • Spelling
  • Small security improvements

1.8.2

  • 2020 年 8 月 2 日 by Ipstenu
  • 修复在您自己的页面上显示 IP(如果您是管理员)。 这一直在那里,但只在其他人的页面上,所以你可能没有注意到。
  • 已测试 5.5 兼容
  • PHPCS 清理。

1.8.1

  • 2018年3月7日由ipstenu
  • 清理并转义IP地址(道具@juliobox)

1.8.0