Get AI SEO for FREE.

Learn More!

How to Whitelist Rank Math in Cloudflare

Rank Math uses REST API requests to fetch & update data on your website. So if you’re using Cloudflare, there are chances that it may block some of the REST API requests.

In this knowledgebase article, we’ll show you how to whitelist Rank Math in Cloudflare.

1 Rank Math’s REST API Endpoints

Here’s the complete list of REST API endpoints that Rank Math uses. (Note: This list is only for reference; you don’t have to whitelist them manually one by one, as we’ll walk you through the most effortless way below).


2 Whitelisting Rank Math in Cloudflare

To begin with, navigate to the Rules section in the Cloudflare dashboard of your domain, as shown below.

Navigate to Rules section

2.2 Create New Page Rule

Under the Page Rules section, click the Create Page Rule button.

Create Page Rule

While it’s not possible for you to include all those REST endpoints as Cloudflare limits only to 3-page rules for free users, we suggest you include the below REST endpoint version that’ll try to match all endpoints from Rank Math.*

Ensure that you replace with your domain name.

Next, in the field “Then the settings are:” choose Cache Level and select Bypass as the cache level, as shown below.

Whitelist Rank Math in Cloudflare

2.3 Deploy Page Rule

After adding the necessary settings, click the Save and Deploy button.

Save Page Rule

3 How to Exclude Sitemaps in Cloudflare

To exclude your sitemap from being cached by Cloudflare, add the Page Rule with a Cache Level of Bypass followed by any of the below regex patterns your sitemap URLs follow.


For instance, here’s how the Page Rule will look in Cloudflare.

Create a Page Rule to exclude sitemap

4 Whitelist Rank Math’s IP Address in Cloudflare

You might need to whitelist the following IP addresses in Cloudflare:

  • –
  • –
  • –
  • –

To do so, navigate to Security → WAF and click Create rule button from your Cloudflare dashboard, as shown below.

Create a firewall rule

Next, add a descriptive name to your firewall rule and then set the condition as follows:

  • Field – IP Source Address
  • Operator – equals
  • Value –
  • (Or) –
  • (Or) –
  • (Or) –
Add firewall rule

Finally, set the condition to Skip, choose All managed rules under WAF components to skip, and click on the Deploy button.

And that’s it! If you still have questions about whitelisting Rank Math in Cloudflare– you’re always more than welcome to contact our dedicated support team. We’re available 24/7, 365 days a year…

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?


Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles