该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Real IP and Geo for Cloudflare

描述

From the Cloudflare Support website:

Q: Why do my server logs show Cloudflare’s IPs using Cloudflare?

A: When you sign on to Cloudflare the way your logs are displayed will change because Cloudflare
acts as a proxy. This means that your visitors are routed through the Cloudflare network. This
allows Cloudflare to stop attacks before they reach your network. It also allows Cloudflare to
speed up page load time by more efficiently routing packets and, more importantly, caching
static resources (images, javascript, css, etc.) on a very fast connection. However, as a
result, the connecting IP will always come from the Cloudflare network.

As a result, commenters’ IP will also be masked by Cloudflare. Luckily, Cloudflare sends the real
user’s IP in a separate header. This plugin saves it, as well as the user’s geo-location (also
provided by Cloudflare), and displays this information in the admin panel.

屏幕截图

  • The admin panel with the plugin activated

安装

  1. Upload the plugin files to the /wp-content/plugins/real-ip-and-geo-for-cloudflare directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

常见问题

Searching by clicking on the IP stopped working

That’s a known limitation.

评价

2018 年 11 月 7 日
I wasn't expecting it to work as well. It provides true IP to both Gravity Forms and Woocommerce. Amazing!
阅读所有2条评价

贡献者及开发者

“Real IP and Geo for Cloudflare” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Real IP and Geo for Cloudflare」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Real IP and Geo for Cloudflare”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0

  • The first version of the plugin.