| 开发者 |
Ipstenu
JohnnyWhite2007 |
|---|---|
| 更新时间 | 2022年12月24日 03:06 |
| 捐献地址: | 去捐款 |
| PHP版本: | 4.7 及以上 |
| WordPress版本: | 6.1 |
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.
这是因为用户是在安装和/或激活插件之前注册的。
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.
管理员和网络管理员。
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,所以我认为单站点也是。 如果没有,请告诉我!
That's what happens when you add in more columns. You can remove them from view if you want.
On multisite only the Network admins who have access to Network Admin -> Users can see the IPs on the user list.
有过滤器! 把它扔到一个 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');