Corrected commenter IP for Cloudflare CDN

Descrizione

此 WordPress 插件更正了使用 Cloudflare CDN 的网站的评论者 IP 地址。它能够处理来自 Cloudflare 的代理 IP,确保获取真实的评论者 IP 信息(🚨本插件不属于 Cloudflare 官方!)。

Usage

  1. 确保你的 WordPress 网站通过 Cloudflare 代理进行访问。
  2. 插件会自动修正评论和找回密码邮件中的 IP 地址,使其显示真实的 IP。

External Services

This plugin connects to the Cloudflare API to retrieve a list of Cloudflare CDN IP addresses. This is necessary to ensure accurate handling of IP-related functionality, such as fixing comment IP detection when Cloudflare’s CDN is in use.

What the service is and what it is used for

The plugin uses the Cloudflare API (specifically the endpoint https://api.cloudflare.com/client/v4/ips) to fetch the current list of Cloudflare CDN IP addresses.

What data is sent and when

No user-specific data is sent to the Cloudflare API. The plugin makes a simple GET request to the API endpoint to retrieve the IP list. This request occurs whenever the plugin needs to refresh or verify the IP list (e.g., during initialization or periodic updates, depending on your plugin’s logic).

Service provider

This service is provided by Cloudflare, Inc.

Links to terms of service and privacy policy

  • Terms of Service: https://www.cloudflare.com/terms/
  • Privacy Policy: https://www.cloudflare.com/privacypolicy/

This information is fetched to ensure the plugin functions correctly with Cloudflare’s CDN services. No personal or sensitive user data is transmitted in this process.

Libraries Used

  • IPLib: 用于处理 IP 地址的解析与匹配。

FAQ

为什么我需要这个插件?

当您的网站使用 Cloudflare CDN 时,所有的访客 IP 地址都会被 Cloudflare 的代理 IP 地址所替代。此插件会修正评论和找回密码邮件中的 IP 地址,确保您能够获取到真实的 IP 信息。

插件支持 IPv6 吗?

是的,本插件支持 IPv6 地址。但是在修正邮件中可能支持的不是很好,因为替换原始 IP 的逻辑是通过正则表达式/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/来替换,如果你的网站使用 IPv6 回源会无法找到邮件里的原始 IP 信息来替换。

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

是的,插件每天会自动更新 Cloudflare 的 IP 列表。

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

此插件在低访问量的情况下不会对网站性能产生显著影响。(因为我认为用户评论和发送找回密码并不是一个特别频繁的场景)

此插件支持其他 CDN 吗?

仅支持 Cloudflare CDN

Recensioni

Non ci sono recensioni per questo plugin.

Contributi e sviluppo

“Corrected commenter IP for Cloudflare CDN” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori