[WordPress] 外掛分享: Edge Cache & Security for Cloudflare

首頁 › 外掛目錄 › Edge Cache & Security for Cloudflare
WordPress 外掛 Edge Cache & Security for Cloudflare 的封面圖片
全新外掛
安裝啟用
—
尚無評分
11 天前
最後更新
—
問題解決
WordPress 6.5+ PHP 8.1+ v1.0.0 上架:2026-11-13

外掛標籤

開發者團隊

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

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

原文外掛簡介

Edge Cache & Security for Cloudflare connects your WordPress site to the Cloudflare zone it already uses, with a scoped API token. It sets up Cloudflare features for you and keeps them in sync with your content.
Smart Page Cache

Installs two Cloudflare Cache Rules: pages are cached at the edge for visitors without a login or cart, while admin pages, logged-in users, previews, the REST API and other dynamic requests go to your server.
Choose how long pages stay in the Cloudflare cache. The plan minimum is respected.
A built-in cache check requests your pages as a visitor and explains the cf-cache-status result.
Only rules whose name starts with [CFEH] are ever created, changed or removed. Your own rules are left alone.

Smart Purge

When you publish, update or delete content, the changed page and related pages (home, archives, feeds, sitemap) are purged.
Purges are batched and sent after the change, never during a normal visitor page view.
Purge single URLs or the whole zone from the dashboard, the admin bar or WP-CLI.

WooCommerce

Cart, checkout and My Account pages, and visitors with a cart or session cookie, always bypass the cache.
Product, variation, stock, price and scheduled sale changes trigger a purge.

Real visitor IP

Restores the visitor IP from the CF-Connecting-IP header, only when the request really comes from a Cloudflare address. The Cloudflare IP list is bundled with the plugin and, once you connect your zone, refreshed weekly.

Turnstile anti-spam

Cloudflare Turnstile on the login, registration, lost password and comment forms, and on WooCommerce My Account and checkout forms.
Choose what happens if Cloudflare cannot be reached: allow the form and log a warning (default), or reject it.

Edge security

Hardening presets as Cloudflare WAF custom rules: block XML-RPC, challenge the login page, block user enumeration, block probes for sensitive files.
Allowlist and blocklist for IP addresses and ranges. Your own IP, Cloudflare addresses and private ranges cannot be blocked, and your IP is added to the allowlist when you connect.
The dashboard shows each rule’s expression and how many custom rules your plan allows.

Dashboard, logs and safe mode

Overview with requests and cache hit ratio for the last 24 hours (from Cloudflare analytics, when your plan and token allow it), security event counts and the last purge.
Logs with filters for API calls, purges, cache and security events. Entries are deleted after 30 days by default.
Safe mode pauses purges, cache headers and Turnstile checks with one click or with define( 'CFEH_SAFE_MODE', true );.
Light and dark themes. All assets are bundled with the plugin.

WP-CLI
wp cfeh status, `wp cfeh purge --all|--urls=`, `wp cfeh rules install|remove|status`, `wp cfeh diagnose`, `wp cfeh safe-mode on|off`, `wp cfeh ip allow|unallow `.

External services
This plugin connects to services provided by Cloudflare, Inc.
Cloudflare API (api.cloudflare.com)
Used to verify your API token, find your zone, create and remove the cache and security rules made by this plugin, purge cached pages, read traffic analytics for the dashboard (GraphQL Analytics API) and refresh the list of Cloudflare IP addresses. Requests are sent from your server only when you use the plugin dashboard or WP-CLI, when content changes require a purge, and from scheduled background tasks (weekly IP list refresh, retried purges). Nothing is sent to Cloudflare until you connect a zone with your API token; activating the plugin makes no external request. They are never sent during a normal visitor page view. Data sent: your API token (as an authorization header), your zone id, rule definitions (which may include IP addresses you add to the allowlist or blocklist) and the URLs of pages to purge.

Terms: https://www.cloudflare.com/website-terms/
Privacy policy: https://www.cloudflare.com/privacypolicy/

Cloudflare Turnstile (challenges.cloudflare.com)
Only when you enable Turnstile and choose forms to protect. The Turnstile script is loaded from challenges.cloudflare.com on pages that show a protected form, and runs in the visitor’s browser. When the form is sent, your server sends the Turnstile token, your secret key and the visitor IP address to challenges.cloudflare.com to check it.

Terms: https://www.cloudflare.com/website-terms/
Privacy policy: https://www.cloudflare.com/turnstile-privacy-policy/

Your own site
The cache check on the Cache tab requests your own home page and latest post (and a WooCommerce product page, if any) from your server, as an anonymous visitor and with a test cookie, to read the cache status headers. No data is sent to third parties.

延伸相關外掛

文章
Filter
Mastodon