Cloudflare icon
Security

Cloudflare

All of Cloudflare’s performance and security benefits in a simple one-click install.

  • By Cloudflare
  • v4.14.5
  • Updated

Overview

Cloudflare describes itself as: “All of Cloudflare’s performance and security benefits in a simple one-click install.”

It is active on 200,000+ WordPress sites and rated 3.5 out of 5 by 181 users on WordPress.org. Developers can extend it through 1 actions and 5 filters, listed below.

We haven't published a hands-on review of Cloudflare yet. Want one, or need help with it? Send us a request.

How to install Cloudflare

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Cloudflare” and pick the one by Cloudflare.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install cloudflare --activate

Requirements: WordPress 6.7+ · PHP 7.4+ · tested up to WordPress 7.1.4

Hooks & customisation

Cloudflare 4.14.5 fires 1 actions and 5 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

cloudflare — top hooks
// Filter in src/WordPress/Hooks.php
apply_filters( 'cloudflare_purge_by_url', $this->getPostRelatedLinks($postId), $postId );

// Filter in cloudflare.loader.php
apply_filters( 'cloudflare_purge_everything_actions', $cloudflarePurgeEverythingActions );

// Filter in cloudflare.loader.php
apply_filters( 'cloudflare_purge_url_actions', $cloudflarePurgeURLActions );

// Action in src/WordPress/Hooks.php
do_action( 'cloudflare_purged_urls', $urls, $postIds );

// Filter in src/WordPress/Hooks.php
apply_filters( 'cloudflare_use_cache', !is_user_logged_in() );

// Filter in src/WordPress/HTTP2ServerPush.php
apply_filters( 'http2_link_preload_src', $src );

Browse all 6 hooks with examples →

Need Cloudflare customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Cloudflare. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Security

See all →

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Reviewed 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs 7 hooks