BACK TO DIRECTORY

On many shared cPanel hosts – Bluehost, HostGator, Namecheap, A2 Hosting, GoDaddy, and European providers such as IONOS, OVHcloud or Krystal – Apache does not natively restore the client IP from Cloudflare headers. This causes WordPress, WooCommerce, security plugins and access logs to record Cloudflare’s edge IP instead of the real visitor IP.
Real IP Restore for Cloudflare fixes this transparently:
- On every request, checks whether
REMOTE_ADDRbelongs to a Cloudflare IP range. - If yes, replaces
REMOTE_ADDRwith the value fromCF-Connecting-IP(orX-Forwarded-Foras fallback). - IP ranges are fetched once per day from Cloudflare’s official endpoints and cached as a WordPress transient.
Features:
- Zero configuration – works out of the box.
- IPv4 and IPv6 support.
- Daily auto-refresh of Cloudflare IP ranges.
- Manual refresh from Settings CF Real IP.
- Falls back to hardcoded ranges if Cloudflare endpoints are unreachable.
- Lightweight – no database tables, no options, no JavaScript.
Plugin Details
Active Installs
60Total Downloads
310Version
1.3.1Requires WP
5.0Requires PHP
7.4Tested Up To
7.0.4Added
2026-06-02Last Updated
2026-06-02 8:25am GMTRatings
5
0
4
0
3
0
2
0
1
0