148 articles
Knowledge Base
Cloudflare
148 articles in the Cloudflare category · page 1 of 7.
- Cloudflare WAF and PHP2Shell: check the rules and the gaps Check that Cloudflare's managed rules for PHP2Shell are on and blocking for your WordPress site, and read the events they record. You will also close the two gaps the rules leave open, a renamed upload progress field and an origin server anyone can reach directly.
- Cloudflare error 525: SSL handshake failed at the origin Cloudflare error 525 means the TLS handshake between Cloudflare and your origin server failed. Check the certificate, port 443, SNI support and cipher suites on the origin to find the cause.
- Bot Fight Mode vs Super Bot Fight Mode vs Bot Management Bot Fight Mode is free with no exceptions, Super Bot Fight Mode adds per-class actions and Skip rules, and Bot Management adds the bot score.
- cf-cache-status: DYNAMIC, BYPASS, MISS and HIT explained cf-cache-status tells you what Cloudflare's cache did with a response. See what DYNAMIC, BYPASS, MISS and HIT mean, and the one check each value calls for.
- Nginx and Apache real IP behind Cloudflare on cPanel Behind Cloudflare, Nginx and Apache log Cloudflare's IP instead of the visitor's. Restore the real client IP on cPanel with realip and mod_remoteip.
- What is a cf-ray header? Reading a Cloudflare Ray ID A cf-ray header is the unique ID Cloudflare gives every proxied request, plus the data centre that served it. Read one and find it in your logs.
- AutoSSL DCV failures on domains proxied through Cloudflare AutoSSL keeps failing domain control validation once the orange cloud is on. How HTTP validation interacts with the Cloudflare edge, why the DNS fallback goes nowhere, and the fixes that hold.
- Cloudflare error 521: web server is down — or just refusing Cloudflare Cloudflare shows error 521 when your server refuses its connection. Find out whether the web server is down or a firewall is blocking Cloudflare, and fix the cause.
- LSCWP with Cloudflare CDN: cache hierarchy and purge coordination Set up LiteSpeed Cache for WordPress and Cloudflare so the two caches agree. You will set cache lifetimes, keep Cloudflare from caching private pages, and make one purge clear both.
- Cloudflare APO for WordPress: setup, cache hits and bypass Set up Cloudflare APO on a WordPress site so public pages are served from the edge while logged-in and cart pages stay private. You will read the cf-cache-status and cf-apo-via headers, find the cookie or query string behind a low hit ratio, and fix it, including on a cPanel server.
- Migrating a production site to Cloudflare: the full cutover runbook Move a live production site to Cloudflare without losing mail, records or HTTPS during the switch. The runbook covers the zone inventory, TTL lowering, record checks, proxy testing, the nameserver change and a ready rollback.
- ModSecurity false positives behind Cloudflare on cPanel servers Fix ModSecurity false positives on a cPanel server that sits behind Cloudflare, and stop the firewall from banning Cloudflare's own addresses. You will restore real visitor IPs, protect the edge from bans and then tune rules, without switching the WAF off.
- Staging redirect leftovers: old 301s cached in browsers and at the Cloudflare edge A staging redirect after launch usually persists because a cached 301 keeps replaying in browsers and at the Cloudflare edge. Find every remaining source, purge the edge in the right order, and point the old host at production.
- WordPress link preview shows the wrong image: fix og:image Fix a WordPress link preview that shows the wrong image, an old title or no image at all on Facebook, LinkedIn, Slack, X or iMessage. You will see the page the way each platform's bot sees it, find the step that breaks, and refresh the stored preview where the platform allows it.
- Transactional mail DNS on Cloudflare: SES, SendGrid, and Postmark records that actually verify Fix Amazon SES, SendGrid or Postmark domain verification that stays on pending when your DNS is on Cloudflare. You will set each provider's CNAME and TXT records to DNS-only so the checks pass within minutes.
- Allowlisting Cloudflare IP ranges in CSF and LFD the right way Let Cloudflare reach your cPanel server through the CSF firewall without opening every port. You will allow its address ranges on ports 80 and 443 only, stop LFD from banning them, and keep the list current with a weekly cron job.
- Protecting wp-login.php with Cloudflare rate limiting on the Free plan Use the one rate limiting rule on Cloudflare's Free plan to block fast password-guessing attacks on wp-login.php. You will set it up, test that it fires, and pair it with a custom rule that catches slower attacks.
- trycloudflare.com: share localhost with a Quick Tunnel Put an app running on your own machine on a public trycloudflare.com HTTPS link with one command and no account, then know when to switch to a named tunnel.
- Reading Cloudflare Security Events like an operator Find out why Cloudflare blocked or challenged a request by reading Cloudflare Security Events in your dashboard. Look up a Ray ID, tell bots from real visitors, and export events before they expire.
- Cloudflare logging on Free, Pro, and Business: what you get, what you do not, and what to use instead Find out which Cloudflare logs your Free, Pro, or Business plan includes, and how to use your origin server logs to investigate problems when per-request edge logs are not available.
- Cloudflare ERR_TOO_MANY_REDIRECTS: fixing the Flexible SSL 301 loop The zone is on Flexible SSL, Cloudflare fetches your origin over plain HTTP, and the origin answers 301 to HTTPS forever. Confirm the loop with curl, fix it permanently with an origin certificate and Full (strict), and handle the WordPress, Apache and nginx variants.
- A mail subdomain strategy that survives Cloudflare proxying One grey-clouded mail.example.com carries MX, IMAP, and SMTP; the web stays proxied; webmail gets its own orange hostname. The zone layout that keeps mail and proxy from ever fighting.
- Allowlisting Cloudflare IPs at the origin firewall: ufw, nftables, and cloud security groups Once traffic rides the Cloudflare proxy, the origin should refuse everyone else on 80/443. How to build the allowlist in ufw, nftables, and cloud security groups — and keep it current when the published ranges change.
- Always Use HTTPS vs origin redirects: who should own the HTTP to HTTPS hop The HTTP to HTTPS redirect can come from the Cloudflare edge, the origin server, or a CMS plugin — and sites often run all three. Here is who should own the hop, how to audit the chain, and how to retire the duplicates safely.