Home Plugins cfcdn comment ip fix
Corrected commenter IP for Cloudflare CDN logo

Corrected commenter IP for Cloudflare CDN

by guguan123 on WordPress.org

A plugin to correct commenter IP addresses for WordPress websites using Cloudflare CDN.

(0)

This WordPress plugin is designed to correct the inaccurate display of commenter IP addresses on websites utilizing Cloudflare CDN. By processing proxy IPs from Cloudflare, this plugin ensures that the real commenter IP information is retrieved and recorded. This is crucial for comment moderation, spam identification, and website security analysis.

Please note: This plugin is provided by an independent developer and is not an official Cloudflare product.

Usage

  1. Ensure your WordPress website is correctly configured and proxied through Cloudflare CDN.
  2. Once activated, the plugin will automatically correct IP addresses in the following functionalities to display the real visitor IP:
    • User Comments: The IP address recorded upon comment submission.
    • Password Reset Emails: The IP address included in password reset emails sent to users.

This plugin requires no additional configuration; it works automatically upon activation.

External Services

This plugin connects to the Cloudflare API to retrieve the latest list of Cloudflare CDN IP addresses. This is necessary to ensure the plugin can accurately handle IP-related functionalities, 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 https://api.cloudflare.com/client/v4/ips endpoint) to fetch the current list of Cloudflare CDN IP addresses.

What data is sent and when

The plugin does not send any user-specific data to the Cloudflare API. It only makes a simple GET request to the API endpoint to retrieve the IP list. This request occurs when the plugin needs to refresh the IP list.

Service provider

The service for retrieving Cloudflare IP lists 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/

The retrieval of this information (Cloudflare IP list) ensures the plugin functions correctly with Cloudflare’s CDN services. No personal or sensitive user data is transmitted during this process.

Libraries Used

  • IPLib: Used for parsing and matching IP addresses.
Active installations0+
Weekly downloads
11-73.17%
Version0.1.4
Last updated8/9/2025
WordPress version6.0
Tested up to6.8.2
PHP version7.0
Tags
cdncloudflarecommentsreal ipsecurity