Integrating WP Multisite WaaS with Cloudflare - superdav42/wp-multisite-waas GitHub Wiki

It's a pretty straightforward process.

How to start?

You need to have WordPress network installed and the WP Multisite WaaS plugin installed.

Go to Multisite WaaS ==> Settings ==> Integrations ==> CloudFlare Integration ==> Configuration

cloudflare step 01

You will be redirected to the next page for activation, then click on Activate

cloudflare step 02

The next page will explain the integration instructions, which are getting your domain API Zone ID and your domain API token, then you just need to click on Next button.

Now you will be redirected to the configuration screen that asks for the Zone ID and API Key

cloudflare step 03

Head to your Cloudflare account, choose your domain ==> click on Overview, on the right-hand side you will find Zone ID, copy it and save it somewhere, then click on Get API Token."Please note, you do not want to use the Account ID."

cloudflare domain main page

Steps to get your domain API Token.

Click on Get API Token from the previous step, or visit Cloudflare API Token, then click on Create Token

cloudflare step 04

On the next screen: Edit zone DNS ==> click on Use Template

cloudflare step 05

Choose a name for your Token, then under "Permissions" ==> Zone ==> DNS ==> Make sure to select Edit. Under "Zone Resources" ==> include ==> specific zone ==> select your domain name, then the last step click on Continue to summary button.

cloudflare step 06

On the next screen, click on Create Token.

cloudflare step 07

Now you will see your API Token. Please note that it will be shown this time only, and you must keep it somewhere; otherwise, you will need to repeat the whole process.

cloudflare step 08

Now we have the API Zone ID and the domain API Token. Get back to your WordPress and paste the zone ID and API key in the fields and click on Add Manually button

cloudflare step 09

On the next screen, you will get a piece of code. Insert this code on the wp-config.php file before this line /* That's all, stop editing! Happy publishing. */ then click on Test Integration button

cloudflare step 10

If you set up everything correctly, you will get a success message, then click on Continue button

cloudflare step 11

Congratulations! Now you have completed the integration with Cloudflare.

cloudflare step 12