On this page
- Cloudflare WordPress setup without taking the site down
- Which SSL/TLS mode should you pick?
- What Cloudflare WordPress security covers on the free plan
- Cloudflare firewall rules for wp-login.php and xmlrpc.php
- Will Bot Fight Mode block things you need?
- Do you need the Cloudflare plugin, and what about APO?
- What Cloudflare won’t do for you
- Getting help with the move
- Frequently asked questions
Cloudflare WordPress security on the free plan means DDoS filtering, a managed firewall ruleset, five custom rules and basic bot blocking, all applied once your DNS runs through Cloudflare. It’s a solid outer layer. It won’t patch a vulnerable plugin or clean an infected site, so it works best next to updates and backups.
Setup is mostly DNS work, and the settings that matter are few. The risky part is the order you do things in. If you’d rather have someone own the site afterward, our WordPress care and maintenance plans cover the updates and monitoring that Cloudflare doesn’t.
Cloudflare WordPress setup without taking the site down
In the Cloudflare dashboard, go to Domains > Onboard a domain, enter the apex domain (example.com, not www.example.com) and pick a plan. The free plan is fine for most small business sites. Then work through this list slowly:
- Review the DNS records Cloudflare imports. Its automatic scan can miss some, so compare the list against your current DNS zone line by line, including email records and subdomains.
- If DNSSEC is on, turn it off at the registrar first. Cloudflare’s onboarding page warns that changing nameservers while DNSSEC is active can make your domain unreachable.
- Add the two nameservers Cloudflare assigns to you at the registrar, replacing the old ones.
- Wait for Cloudflare to show the domain as active, then check the site from a phone off your Wi-Fi.
One detail trips people up. Records with the orange cloud are proxied, meaning web traffic passes through Cloudflare and gets its protection. Records with the gray cloud are DNS-only and get none. Your main A or CNAME record for the website should normally be orange. And a missing record isn’t a small slip: according to Cloudflare, activating before the records are right can show visitors DNS_PROBE_FINISHED_NXDOMAIN errors.

If email lives on the same domain, read our guide to migrating email without losing mail before you touch nameservers. The same records are involved.
Which SSL/TLS mode should you pick?
Full (strict), as long as your server has a valid certificate. Cloudflare says it strongly recommends Full or Full (strict) to prevent malicious connections to your origin.
| Mode | Cloudflare to your server | Our view |
|---|---|---|
| Flexible | Unencrypted | Avoid |
| Full | Encrypted, certificate not validated | Acceptable stopgap |
| Full (strict) | Encrypted, certificate validated (public CA or Cloudflare Origin CA) | Use this |
Flexible is also the usual cause of ERR_TOO_MANY_REDIRECTS. Cloudflare talks to your server over plain HTTP, your server redirects to HTTPS, and the two bounce forever. Cloudflare’s fixes are to remove the redirect at the origin or move to Full or Full (strict). For WordPress specifically, it recommends installing the Cloudflare plugin and turning on Automatic HTTPS rewrites, which helps with both loops and mixed content.
If you’re not sure your server has a valid certificate, check that before switching to strict. Strict will refuse to connect if the certificate is wrong, and your visitors will see an error page.
What Cloudflare WordPress security covers on the free plan
More than most people expect, but less than the marketing implies. Here’s what Cloudflare’s documentation lists:
- DDoS protection: standard, unmetered, layers 3 to 7, on the Free plan. Cloudflare says it automatically detects and mitigates attacks.
- Free Managed Ruleset: a subset of Cloudflare’s Managed Ruleset, deployed by default on Free plans.
- Custom rules: 5 WAF custom rules and 1 custom ruleset per zone.
- Rate limiting: 1 rule.
- Bot Fight Mode: a simple, free bot filter.
Here’s the gap. Cloudflare’s WAF pages don’t say how many rules the Free Managed Ruleset holds or which WordPress exploits they target. Nor do they have a page on hardening self-hosted WordPress. So treat the cloudflare waf wordpress picture on the free plan as general web filtering, not a WordPress-aware firewall. If you want to compare the two approaches, we wrote up plugin firewall versus Cloudflare.
Cloudflare firewall rules for wp-login.php and xmlrpc.php
Five custom rules go further than you’d think if you aim them well. The two paths attackers hammer most on WordPress are /wp-login.php and /xmlrpc.php, and a custom rule that challenges requests to those paths is a sensible first use of your allowance.
Before you save it, test. Keep your admin session open in one browser, then try the login from a private window. And find out what uses XML-RPC on your site before you block it, since some apps and plugins rely on it.
Rate limiting is tighter. The free plan allows one rule, with a 10-second counting period and a 10-second mitigation timeout. It counts by IP only, and the rule expression can use only the Path and Verified Bot fields. You can’t write custom counting expressions or exclude cached content. Point that single rule at /wp-login.php. With a 10-second window, though, it catches fast bursts rather than slow, patient guessing.

That’s why Cloudflare shouldn’t be your only login defense. Two-factor authentication and login limits inside WordPress still matter; we cover them in WordPress login security.
Will Bot Fight Mode block things you need?
It can. Cloudflare’s own documentation says Bot Fight Mode may challenge API or mobile app traffic. You also can’t skip it with WAF custom rules or Page Rules, and JavaScript Detections gets switched on automatically and can’t be turned off. For exceptions, Cloudflare points to Super Bot Fight Mode.
For a brochure site, that’s rarely a problem. For a store, a booking system or anything with an app, a REST API integration or a service calling back into your site, test those flows after enabling it. If something starts failing, Bot Fight Mode is a prime suspect, and you’ll want to know that before a customer does.
Do you need the Cloudflare plugin, and what about APO?
We’d install it, mainly because Cloudflare itself recommends it for WordPress and the plugin’s APO FAQ says it doesn’t recommend using APO without the plugin. The plugin listing on WordPress.org shows version 4.14.5, 200,000+ active installs, and a rating of 3.5 out of 5 from 181 reviews, 53 of them one-star. It requires WordPress 6.7+ and PHP 7.4+.
The reviews are mixed and anecdotal. One reviewer in September 2025 felt maintenance had stalled; the changelog shows releases in May, July and October 2026, so it’s being updated. Another, dated October 1, 2026, says the quick-settings option doesn’t save. Check that your settings stick after you change them. The listing’s dates and tested-up-to versions are also inconsistent, so don’t lean on them.
APO (Automatic Platform Optimization) is Cloudflare’s WordPress caching add-on, and it’s about speed, not security. Its setup steps are: confirm DNS records, change nameservers, activate the plugin, verify APO. You can verify it by looking for the response header cf-edge-cache: cache,platform=wordpress. Pricing and plan requirements are worth checking on Cloudflare’s APO product page before you commit, because we can’t give you a reliable figure. If you already run a caching plugin, read our cache plugin comparison first so the two don’t fight.
What Cloudflare won’t do for you
It won’t update plugins. A vulnerable plugin is still vulnerable behind Cloudflare, and a managed ruleset may or may not catch a specific exploit. When a flaw is announced, patching comes first; our plugin vulnerability response plan lays out the order.
It won’t tell you a backup quietly stopped. In our maintenance work we’ve seen a backup plugin disconnect without a sound, which killed both the backups and the downtime alerts, and the site was found hacked later. A firewall in front of the site wouldn’t have shown any of that.
It also doesn’t remove the need for a basic hardening routine. Our WordPress security checklist for small business sites covers the rest. Cloudflare is one layer, a good one, and the free plan is a fair place to start.
Getting help with the move
Nameserver changes are where small sites get hurt: a missed record, a forgotten DNSSEC setting or the wrong SSL mode can take a site or its email offline for hours. If you’d rather not gamble on that, our website care and maintenance service handles the setup, checks that the site still works afterward, and keeps updates and monitoring going so the firewall isn’t your only protection.
Frequently asked questions
Is Cloudflare’s free plan enough to secure a WordPress site?
It’s a good outer layer, with DDoS protection, a managed ruleset, five custom rules and Bot Fight Mode. It doesn’t replace updates, backups, strong logins or malware scanning.
Why do I get ERR_TOO_MANY_REDIRECTS after enabling Cloudflare?
Usually Flexible SSL mode combined with a server that redirects HTTP to HTTPS. Switch to Full or Full (strict), or remove the origin redirect, as Cloudflare’s troubleshooting page advises.
How many custom rules and rate limiting rules does the free plan include?
Five WAF custom rules and one custom ruleset per zone, plus one rate limiting rule with a 10-second counting period and mitigation timeout.
Do I need to turn off DNSSEC before changing nameservers?
Yes. Cloudflare warns that changing nameservers while DNSSEC is active can make your domain unreachable, so disable it at the registrar first.
Can Bot Fight Mode block legitimate traffic?
Yes. Cloudflare says it may challenge API or mobile app traffic and can’t be bypassed with custom rules, so test integrations after turning it on.
Is APO free?
Check Cloudflare’s APO product page for current pricing and plan requirements. It’s a caching feature rather than a security one.
Sources
- Cloudflare: Onboard a domain (modified May 5, 2026, vendor documentation)
- Cloudflare: DDoS Protection (modified Aug 14, 2026, vendor documentation)
- Cloudflare: WAF Get started (modified Nov 4, 2026, vendor documentation)
- Cloudflare: WAF custom rules (modified Oct 16, 2026, vendor documentation)
- Cloudflare: Rate limiting rules (modified Aug 25, 2026, vendor documentation)
- Cloudflare: Bot Fight Mode (modified Aug 3, 2026, vendor documentation)
- Cloudflare: SSL/TLS encryption modes (modified Apr 16, 2026, vendor documentation)
- Cloudflare: Too many redirects (modified Sep 1, 2026, vendor documentation)
- Cloudflare: APO Get started (modified Apr 16, 2026, vendor documentation)
- WordPress.org: Cloudflare plugin (listing updated Oct 5, 2026; plugin and APO claims are vendor-reported, review data is user-submitted)

