[WordPress] 外掛分享: Real IP Restore for Cloudflare

首頁外掛目錄 › Real IP Restore for Cloudflare
WordPress 外掛 Real IP Restore for Cloudflare 的封面圖片
全新外掛
安裝啟用
尚無評分
14 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.3.1 上架:2026-06-01

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Real IP Restore for Cloudflare」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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_ADDR belongs to a Cloudflare IP range.
If yes, replaces REMOTE_ADDR with the value from CF-Connecting-IP (or X-Forwarded-For as 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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon