Linux 软件免费装

更正使用 Cloudflare CDN 的评论者 IP

开发者 GuGuan123
更新时间 2025年8月9日 19:43
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: MIT
版权网址: 版权信息

标签

comments CDN Security real ip Cloudflare

下载

0.1.2 0.1.3 0.1.1 0.1.4

详情介绍:

此 WordPress 插件旨在纠正使用 Cloudflare CDN 的网站上,评论者 IP 地址显示不准确的问题。通过处理来自 Cloudflare 的代理 IP,本插件确保能够获取并记录真实的评论者 IP 信息。这对于评论管理、垃圾评论识别和网站安全分析至关重要。 请注意:本插件由独立开发者提供,并非 Cloudflare 官方产品。

安装:

  1. Upload the cfcdn-comment-ip-fix folder to the /wp-content/plugins/ directory.
  2. 通过 WordPress 后台的“插件”菜单激活插件。

常见问题:

为什么我需要这个插件?

当您的网站使用 Cloudflare CDN 时,所有访客的真实 IP 地址可能会被 Cloudflare 的代理 IP 地址所替代。这会导致您在评论管理、用户行为分析或安全审计时无法获取到准确的访客来源信息。本插件旨在修正这些 IP 地址,确保您能够获取到真实的 IP 信息,从而更好地管理您的网站。

插件支持 IPv6 吗?

Yes, this plugin supports the retrieval and correction of IPv6 addresses. However, for IP correction in password reset emails, the current optimization primarily targets IPv4 addresses. If your website predominantly uses IPv6 for its origin server, the IP correction functionality in emails might not fully cover IPv6 addresses. I am continuously improving this feature to provide more comprehensive IPv6 support.

插件会自动更新 Cloudflare 的 IP 列表吗?

是的,插件每天会自动更新 Cloudflare 的 IP 列表,以确保其始终是最新且准确的。

插件会影响我的网站性能吗?

此插件设计为不会显著影响网站核心性能。它主要用于在低频率场景(例如用户评论提交和密码重置邮件发送)中纠正 IP 地址,因此在正常流量下不会导致明显的性能影响。

此插件支持其他 CDN 吗?

Currently, this plugin only supports Cloudflare CDN. However, you can manually add IP addresses from other CDNs. It retrieves the real IP via the X-Forwarded-For header.

更新日志:

0.1.4 改进了国际化支持,更符合 WordPress 的要求 0.1.3 0.1.2 0.1.1