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

首頁外掛目錄 › Real IP and Geo for Cloudflare
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
398 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.2.4+ v1.0.1 上架:2018-05-29

內容簡介

來自 Cloudflare 支援網站:

問:為什麼我的伺服器日誌顯示 Cloudflare 的 IP 使用 Cloudflare?

答:當您登錄 Cloudflare 時,日誌顯示方式會因 Cloudflare 充當代理而改變。
這意味著您的訪客將通過 Cloudflare 網絡路由。這使得 Cloudflare 可以在攻擊到達您的網絡
之前停止攻擊。這也允許 Cloudflare 更有效地路由分組和更重要的是在非常快速的連接上
緩存靜態資源(圖像、Javascript、CSS 等)。但是,因此,連接 IP 將始終來自 Cloudflare
網絡。

因此,留言者的 IP 也會被 Cloudflare 遮蔽。幸運的是,Cloudflare 會發送真實用戶的 IP
到一個單獨的標頭。這個外掛會將其保存,以及用戶的地理位置(Cloudflare 也提供)
並在管理面板中顯示這些信息。

外掛標籤

開發者團隊

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

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

原文外掛簡介

From the Cloudflare Support website:
Q: Why do my server logs show Cloudflare’s IPs using Cloudflare?
A: When you sign on to Cloudflare the way your logs are displayed will change because Cloudflare
acts as a proxy. This means that your visitors are routed through the Cloudflare network. This
allows Cloudflare to stop attacks before they reach your network. It also allows Cloudflare to
speed up page load time by more efficiently routing packets and, more importantly, caching
static resources (images, javascript, css, etc.) on a very fast connection. However, as a
result, the connecting IP will always come from the Cloudflare network.
As a result, commenters’ IP will also be masked by Cloudflare. Luckily, Cloudflare sends the real
user’s IP in a separate header. This plugin saves it, as well as the user’s geo-location (also
provided by Cloudflare), and displays this information in the admin panel.
Note that when the blog is served directly to the internet (not through Cloudflare), anyone can
spoof any IP address and geo-location by specifying any value in the request headers.

延伸相關外掛

文章
Filter
Mastodon