Cloudflare is a popular content delivery network (CDN), caching, and protection service that is compatible with Jetpack on WordPress.
Cloudflare should be compatible with Jetpack by default, but some configurations might require adjustments to Cloudflare settings for it to be able to work with Jetpack.
Optimize your site to work with Cloudflare
Additional configuration may be necessary to ensure that your Jetpack site is optimized to work well with Cloudflare. Below are a few of the common issues with Cloudflare, and how to resolve them.
Allowlist Jetpack IPs in Cloudflare settings
Jetpack communicates with your site via xmlrpc.php. Cloudflare’s default settings should already allow Jetpack requests to pass through.
However, if Cloudflare blocks Jetpack’s access to your site’s xmlrpc.php file, you may need to add Jetpack IP addresses to an allowlist in Cloudflare settings. We have documentation about allowlisting Jetpack IP addresses, though if you need additional guidance on Cloudflare’s end, please consult with their support team.
Exclude WordPress’s WP Admin from Cloudflare
Cloudflare can speed up your site for visitors, but it isn’t needed in your site’s WP Admin, and may cause problems. You should configure Cloudflare to ignore your WP Admin by creating page rules for URL *yourjetpack.blog/wp-admin* (where yourjetpack.blog` is your own site’s domain name.
Cloudflare’s documentation about creating rules can be found here.
Special considerations for your server credentials in Jetpack VaultPress Backup settings when using Cloudflare
If you are a Jetpack VaultPress Backup customer, when using Cloudflare on your site, you will need to provide your server’s IP address in the “Server address” (otherwise known as “hostname”) field of your Jetpack VaultPress Backup credentials settings.
Troubleshooting Jetpack and Cloudflare
Scope of support
Jetpack support cannot assist with Cloudflare configuration.
How to pause Cloudflare for troubleshooting and diagnostics
If you’re having trouble on your site that is suspected to be related to a conflict between Jetpack and Cloudflare, you can temporarily pause Cloudflare for testing purposes. Guidance for how to pause Cloudflare is in this Cloudflare documentation.
500-level errors from Cloudflare when attempting to connect Jetpack
If you have already optimized Jetpack for use with Cloudflare and are seeing 500-level errors when attempting to connect your site to Jetpack, you will need to work with your hosting provider and Cloudflare to resolve the issue. Cloudflare has a troubleshooting guide for how to fix these issues here.
Known conflicts between Jetpack and Cloudflare
- Cloudflare’s Rocket Loader has compatibility issues with some Jetpack features.
Still need help?
Please contact support. We’re happy to advise.