WordPress ウェブサイトに Cloudflare をインストールする方法 (2026): ステップバイステップガイド - JA

オンラインの Cloudflare-for-WordPress チュートリアルの半分は依然として Auto Minify をオンにするよう指示しています. そのスイッチはもう存在しません. Cloudflare retired it on 8月 5, 2024, そしてその2つを結び付ける正しい方法もそれに伴って変化しました: you now link the plugin with an API token, not the old email-and-API-key combo. This walkthrough uses the current dashboard, the current plugin (バージョン 4.14.3), and the settings that still matter in 2026.

簡単な回答: Create a free Cloudflare account, add your domain, and switch your nameservers at your registrar to the two Cloudflare gives you. セット SSL/TLS to Full (strict), turn on Always Use HTTPS, then install the official Cloudflare plugin in WordPress and connect it with a WordPress-template API token. Apply the recommended settings, flip on APO if you want HTML cached at the edge, and you’re done. Most sites finish in under 30 分, minus DNS propagation.


cloudflareサインアップページの画像


最終レビュー済み: 六月 2026. Steps verified against the current Cloudflare dashboard and the Cloudflare WordPress plugin v4.14.3 (WordPressまでテスト済み 6.9).

What sets this guide apart from the stale ones: it skips the deprecated Auto Minify advice, uses the token-based login (the email-plus-API-key method is the old path), and tells you which plan you actually need instead of pushing you toward Pro. You can run a fast, protected WordPress site on the free tier alone.

What Cloudflare Actually Does for a WordPress Site

Two jobs, 本当に. 初め, it’s a content delivery network. Cloudflare copies your static files (画像, CSS, JavaScript) to data centers around the world, so a visitor in Sydney pulls them from a nearby server instead of your origin host in, いう, ダラス. That cuts latency. If you want the longer explainer on how a CDN improves load times, we cover the mechanics there.

2番, it sits in front of your site as a reverse proxy. Traffic hits Cloudflare before it reaches your server, which means Cloudflare can filter bad requests, absorb DDoS floods, and hand out a free SSL certificate. Your origin IP stays hidden. Attackers see Cloudflare, あなたのホストではありません.

The key idea to hold onto: once your DNS records areorange-clouded” (proxied), traffic routes through Cloudflare. Grey-clouded records resolve straight to your server with no protection or caching. The orange cloud is the whole point.

始める前に: Is Your Site Cloudflare-Ready?

初め, a reality check: this guide is for self-hosted WordPress (a WordPress.org site where you control your own domain and DNS). If you’re on WordPress.com’s free or lower-tier plans, you can’t change nameservers or install the plugin, so none of this applies until you move to self-hosting. Assuming you’re self-hosted, you need three things. Miss one and the setup stalls halfway.

  • Access to your domain registrar. You’ll change nameservers wherever you bought the domain (GoDaddy, Namecheap, your host’s panel). If someone else manages your domain, loop them in now.
  • A valid SSL certificate on your origin server. Almost every host hands out free Let’s Encrypt certificates these days. You need one for the Full (strict) mode we’ll set later. No origin cert means redirect loops.
  • Admin access to WordPress. Installing the plugin needs a real admin login, not an editor account.

One more thing worth checking: a fast origin still matters. Cloudflare caches and protects, but it can’t fix a slow, overloaded server on the dynamic requests it doesn’t cache. If your host is the bottleneck, a CDN only masks part of the problem. Pairing Cloudflare with SSDベースのWordPressホスティング gives the edge network something quick to fall back on.

フリー vs. 有料: Which Cloudflare Plan Do You Need?

正直な意見: most WordPress sites never need to pay Cloudflare a cent. The free plan covers the basics that matter.

  • 無料 (USD 0/month). グローバルCDN, unmetered DDoS protection, a Universal SSL certificate, fast DNS, and a free managed firewall ruleset. 無制限の帯域幅. This is enough for blogs, パンフレットサイト, and small business pages.
  • プロ (USD 20/month annual, or USD 25/month monthly). Adds lossless image optimization, the full Web Application Firewall, and better analytics. Reach for it when security or image-heavy pages justify the cost.
  • 仕事 (USD 200/month annual, or USD 250/month monthly). PCI DSS 4.0 コンプライアンス, custom WAF rules, と 100% 稼働時間SLA. This is ecommerce and regulated-data territory.
  • 企業. カスタム価格設定, 年払い, with dedicated support and network prioritization.

The one paid extra that’s actually tempting for a busy blog is APO at USD 5/month 無料プランでは. アポ (自動プラットフォーム最適化) caches your full HTML pages at Cloudflare’s edge, 静的ファイルだけではなく, so even logged-out dynamic pages load from the nearest data center. Kinsta’s testing reported page-load gains of up to 300% with it enabled. APO is bundled free on Pro and above. One billing quirk to remember: Cloudflare charges per domain (ゾーン), so a paid plan covers one site, not your whole account.

ステップ 1: Create a Cloudflare Account and Add Your Site

Start at the Cloudflare signup page. Once you’re in:

  • Sign up and add a site. Enter your bare domain (example.com, no https, no www).
  • Pick the Free plan プロンプトが表示されたら, unless you already know you need Pro.
  • Let Cloudflare scan your DNS. It pulls in your existing records automatically. This takes a few seconds.
  • Review the records. Confirm your A record (and any mail or subdomain records) came across. Your web records should show an orange cloud (proxied). Leave mail records grey-clouded, or email can break.

取る 30 seconds here to compare the imported list against your old DNS. If a record is missing, add it manually before you move on. A skipped MX record is the classic reason email dies after a Cloudflare switch.

ステップ 2: Point Your Domain to Cloudflare

This is the step that activates everything. Cloudflare shows you two nameservers, something like dana.ns.cloudflare.comrob.ns.cloudflare.com. They’re unique to your account.

  • Copy both nameservers from the Cloudflare overview screen.
  • Log in to your registrar (where you bought the domain).
  • Find the nameserver setting, 通常は下にあります “DNS” また “Domain Management.
  • Replace the existing nameservers with Cloudflare’s two. Delete the old ones; don’t add Cloudflare’s alongside them.
  • 保存.

Now you wait. Nameserver changes propagate across the internet, and that can take anywhere from a few minutes to 24 時間, though it’s usually quick in 2026. Cloudflare emails you when your site is active. Your site stays online the whole time, so there’s no downtime to worry about.

ステップ 3: Set the SSL/TLS Mode to Full (strict)

Get this wrong and you’ll spend an afternoon chasing redirect loops. In the Cloudflare dashboard, 開ける SSL / TLS → 概要 and choose your mode.

  • 満杯 (strict) 正しい答えです. It encrypts traffic both ways and checks that your origin certificate is valid. Use this whenever your host gives you a real SSL cert, which is almost always.
  • Flexible is the trap. It encrypts only between the visitor and Cloudflare, leaving the origin leg unencrypted. On WordPress it causes infinite redirect loops and mixed-content warnings. スキップしてください.

While you’re in the SSL/TLS area, switch on Always Use HTTPS so every visitor lands on the secure version no matter what they typed, and enable Automatic HTTPS Rewrites to clean up stray HTTP links inside your pages. If you’re on managed infrastructure, your provider almost certainly issues a valid origin certificate already; 私たちのまとめ 管理対象の WordPress ホスト notes which ones bundle free SSL by default.

ステップ 4: Install the Cloudflare WordPress Plugin

You don’t strictly need the plugin for Cloudflare to work. The nameserver switch alone gets you the CDN, SSL, DDoS防御. But the plugin is what makes day-to-day life easier, and it’s required if you want APO.

  • Open your WordPress dashboard and go to プラグイン → 新しく追加する.
  • 検索する “Cloudflare. Look for the official one by Cloudflare, 株式会社. It shows 200,000+ アクティブインストール and was last updated within the past month.
  • Click Install Now, それから 活性化.

What the plugin buys you: one-click cache purging when you publish edits, a one-clickapply recommended settings” ボタン, and the toggle for APO. それなしで, you’d be clearing the cache manually from the Cloudflare dashboard every time you tweak a page.

ステップ 5: Connect the Plugin With an API Token

Here’s where old guides will lead you astray. They tell you to paste your account email and Global API Key. しないでください. The token method is safer because it grants only the permissions the plugin needs, and you can revoke it without resetting your whole account.

  • In the Cloudflare dashboard, open your profile, それから API Tokens, をクリックします Create Token.
  • を選択してください “WordPress” テンプレート. Cloudflare pre-fills exactly the permissions the plugin requires. No guesswork.
  • Continue to summary, それから Create Token. Copy the token now; you can’t view it again later.
  • Back in WordPress, open the Cloudflare plugin settings, choose to sign in with an existing account, enter your account email, and paste the token.
  • Save your credentials. The plugin connects and shows your domain.

If the connection fails, the usual cause is a token created from the wrong template or a stray space copied with the token. Regenerate from the WordPress template and try again rather than fiddling with custom permissions.

ステップ 6: Apply Recommended Settings and Turn On APO

With the plugin connected, two quick moves finish the job.

  • クリック “申し込み” on recommended settings. The plugin configures a sensible WordPress-friendly baseline in one go.
  • Toggle APO to On if you bought it or you’re on a paid plan. This is what caches full HTML pages at the edge.

Important caveat before you enable APO: turn off any page-caching plugin you already run. Cloudflare specifically names WP Rocket and W3 Total Cache as plugins to disable first, because two caching layers fighting each other produce stale pages and odd behavior. Set up APO, confirm it works, then decide whether you even still need the other plugin (often you won’t for page caching, though you might keep it for file optimization).

The Settings That Actually Matter in 2026 (and the One That’s Gone)

ここが 2026 differs from the guides written three years ago. A few specifics:

  • Auto Minify is gone. Cloudflare removed it on August 5, 2024. If a tutorial tells you to enable it, that tutorial is out of date. Handle CSS and JavaScript minification inside WordPress instead, through a performance plugin.
  • Compression runs automatically. There’s no Brotli toggle to flip anymore. Cloudflare compresses your text files on its own, using Zstandard on the free plan (it switched over from Brotli back in 2024) and Brotli on Pro and Business. Any guide telling you toturn on Brotliis describing a setting that’s gone.
  • Rocket Loader: test before you trust it. It defers JavaScript to speed up first paint, but it breaks some themes and sliders. Turn it on, click through your site, and roll it back if anything misbehaves.
  • Browser Cache TTL. Leave it atRespect Existing Headersif your host already sets sane cache headers, or pick a few days for static assets.
  • Don’t cache the admin area. With APO active, Cloudflare already skips wp-admin and logged-in sessions automatically. If you’re caching without APO via a page rule, add a bypass rule for /wp-admin* and /wp-login.php so the dashboard doesn’t serve stale screens.

The DDoS protection runs in the background on every plan, no configuration needed. If you ever come under an active flood, flip onI’m Under Attack Modefrom the dashboard for an extra check on every visitor, then switch it off once the attack passes. If stopping attacks is your main reason for being here, 私たちのガイド DDoS protection in hosting explains what the free tier stops and where you’d want more.

How to Confirm Cloudflare Is Actually Working

Don’t assume it’s live just because you finished the steps. Verify it.

  • Check the activation email, or look at the Cloudflare overview. アン “アクティブ” status means the nameservers switched.
  • Inspect the response headers. Open your browser’s developer tools, reload your homepage, and look at the Network tab. A header reading サーバ: クラウドフレアcf-cache-status value confirm traffic is routing through Cloudflare.
  • Watch cf-cache-status. A “HITmeans the page was served from cache; “DYNAMIC” また “MISSmeans it came from your origin. With APO on, your HTML pages should start showing HIT after the first few loads.
  • Load a page twice. The second visit should feel faster as cached assets kick in.

Troubleshooting Common Cloudflare Problems

The site showstoo many redirects

Classic SSL mismatch. Your mode is set to Flexible while WordPress forces HTTPS, so the two bounce requests back and forth. Switch SSL/TLS to 満杯 (strict) and the loop clears.

My changes don’t show up

Cloudflare is serving a cached copy. Purge it from the plugin (or the dashboard’s “すべてを消去する”), then hard-refresh your browser. The plugin auto-purges on most edits, but big theme or CSS changes sometimes need a manual clear. Doing heavy design work? Switch on Development Mode in the Cloudflare dashboard. It pauses caching temporarily so you see every change live, then turns itself back off.

Email stopped working after the switch

Your MX records didn’t transfer, or they got orange-clouded by mistake. Mail records must stay grey-clouded (DNS only). Recheck the DNS tab and fix any proxied mail entries.

Real visitors are getting a CAPTCHA or getting blocked

A firewall rule or Bot Fight Mode is being too aggressive. Open the Security events log, find the rule that triggered, and loosen it. On Pro and above, turn on theOptimize for WordPressoption inside Super Bot Fight Mode so Cloudflare stops blocking WordPress’s own loopback requests (the calls the dashboard and cron jobs make back to your site).

よくある質問

Is Cloudflare free for WordPress?

はい. The free plan gives you the global CDN, unmetered DDoS protection, 無料のSSL証明書, 無制限の帯域幅, which covers most blogs and small business sites. You’d only pay for Pro (USD 20/month annual) if you need the full firewall or image optimization, or USD 5/month for APO edge HTML caching.

Does Cloudflare actually speed up WordPress?

For visitors far from your server, clearly yes, because static files load from a nearby data center instead of crossing oceans. The bigger jump comes from APO, which caches full HTML pages at the edge; Kinsta measured load-time gains of up to 300% with it on. If all your traffic is local to your host, the gain is smaller.

Do I need the Cloudflare plugin, or just the nameservers?

The nameserver switch alone gets you the CDN, SSL, DDoS防御. The plugin adds one-click cache purging, easy recommended settings, and the APO toggle. If you want APO, the plugin is required. For a basic free setup, it’s optional but handy.

Should I use Full or Full (strict) SSL with WordPress?

Use Full (strict) whenever your host provides a valid SSL certificate, which is nearly always true today. It encrypts both legs of the connection and validates the origin cert. Avoid Flexible: on WordPress it triggers redirect loops and mixed-content errors.

Is Cloudflare APO worth USD 5 月?

For a content-heavy blog with a global audience and no existing page-cache plugin, はい, the edge HTML caching is a real speed win for the price. If you already run a strong caching plugin on a fast host, or your readers are all near your server, the free CDN alone may be enough. It’s bundled free on Pro anyway.

Can Cloudflare break my WordPress site?

It can if it’s misconfigured. The two usual culprits are Flexible SSL (redirect loops) and stacking APO on top of another caching plugin (stale pages). Set SSL to Full (strict), disable competing cache plugins before enabling APO, and most problems never appear.

Next Steps After Cloudflare Is Live

You’ve got a faster, hidden, and protected origin. The natural follow-ups are tuning the parts Cloudflare can’t fix for you: your origin server speed and your on-page performance. A CDN trims delivery time, but a sluggish host still drags your dynamic pages, so it’s worth reading our ホスティング速度の計算式 to see where your real bottleneck sits. That pairs with the CDN comparison and SSD WordPress hosting roundup linked above, which cover the edge and origin sides respectively. Cloudflare handles the edge; a quick host and clean code handle the rest.

調査・執筆者:
HowToHosting 編集者
HowToHosting.guideは、ブログやウェブサイトの作成プロセスに関する専門知識と洞察を提供します。, 適切なホスティングプロバイダーを見つける, そしてその間にあるすべてのもの. 続きを読む...

1 コメント

  1. オルフン

    Danke für diesen アーティケル! Es hat mir sehr bei der Konfigurierung geholfen.

    返事

コメントを残す

あなたのメールアドレスが公開されることはありません. 必須フィールドは、マークされています *

この Web サイトでは、ユーザー エクスペリエンスを向上させるために Cookie を使用しています. 当社のウェブサイトを使用することにより、当社の規定に従ってすべてのクッキーに同意したことになります プライバシーポリシー.
同意します
HowToHosting.Guideで, 私たちは透明性のあるウェブホスティングレビューを提供します, 外部の影響からの独立性を確保する. すべてのレビューに厳格で一貫した基準を適用するため、評価は公平です。.
紹介されている企業の一部からアフィリエイト手数料を得る場合がありますが、, これらの手数料はレビューの完全性を損なったり、ランキングに影響を与えることはありません.
アフィリエイトの収益はアカウント獲得のカバーに貢献します, 試験費用, メンテナンス, ウェブサイトや社内システムの開発.
信頼できるホスティングの洞察と誠実さのためにhowtohosting.guideを信頼してください.