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
You will be redirected to the next page for activation, then click on Activate
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
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."
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
On the next screen: Edit zone DNS ==> click on Use Template
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.
On the next screen, click on Create Token.
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.
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
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
If you set up everything correctly, you will get a success message, then click on Continue button
Congratulations! Now you have completed the integration with Cloudflare.