內容簡介
**總結:**
這個 WordPress 外掛是為了修正使用 Cloudflare CDN 的網站上訪客 IP 地址顯示不準確而設計的。透過處理來自 Cloudflare 的代理 IP,這個外掛確保真實的訪客 IP 資訊被擷取並記錄下來。這對於訪客留言管理、垃圾郵件辨識以及網站安全分析至關重要。
**問題與答案:**
1. 這個外掛的目的是什麼?
- 此外掛的主要目的是修正使用 Cloudflare CDN 的網站上訪客 IP 地址顯示不準確的問題,透過處理代理 IP 來確保真實的訪客 IP 資訊被記錄下來。
2. 這個外掛使用了哪個外部服務?
- 這個外掛連接到 Cloudflare API,以檢索最新的 Cloudflare CDN IP 地址列表,以確保能夠正確處理有關 IP 的功能,例如在使用 Cloudflare 的 CDN 時修復留言 IP 的偵測。
3. 何時和哪些數據會被發送?
- 該外掛並不會向 Cloudflare API 發送任何特定於用戶的數據,僅透過簡單的 GET 請求來檢索 IP 列表。此請求發生在外掛需要刷新 IP 列表時。
4. 外掛使用了哪些程式庫?
- 外掛使用了 IPLib 來進行 IP 地址的解析和匹配。
外掛標籤
開發者團隊
② 後台搜尋「Corrected commenter IP for Cloudflare CDN」→ 直接安裝(推薦)
原文外掛簡介
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
Ensure your WordPress website is correctly configured and proxied through Cloudflare CDN.
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.
