To use the WAF (Web Application Firewall) features, you must first link Ultimate Security with your Cloudflare account. This allows the plugin to manage your security zones and deploy protective rules automatically.
Enable WAF Rules
Before adding your credentials, ensure the Enable WAF Rules toggle is switched ON. This activates the interface for rule configuration, deployment, and analytics.

Connecting Your Account
You will need to provide the following details:
A. Account Name / Label
- A friendly name to identify this specific connection.
- This is helpful if you manage multiple Cloudflare accounts.
B. Authentication Method
You have two ways to connect. We recommend the API Token method for better security:

- API Token (Recommended): Uses a specific token with restricted permissions.
- Email + Global API Key: Uses your Cloudflare login email and your API key.
C. API Token / Key Input
- Paste your secret token or key into this field.
- Permission Requirement: If using an API Token, ensure it has the following permissions:
Zone — WAF — EditZone — Zone — Read
D. Token Duration
- Choose how long Ultimate Security should store these credentials.
- Options include “Forever” (until you manually disconnect) or specific time limits.
Verification
Once the details are filled in, click the Verify & Save button.
- The plugin will perform a handshake with Cloudflare to ensure the credentials are correct.
- If successful, the red “Not Connected” badge at the top will change to a green “Connected” status.
Quick Guide: How to get your API Token
If you aren’t sure where to find your credentials, follow these three steps:
- Log in to your Cloudflare Dashboard.
- Navigate to My Profile > API Tokens.
- Create a token using the “Edit Zone DNS” template or a custom token with the permissions mentioned above (
WAF Edit,Zone Read). - Copy the token and paste it back here in the Ultimate Security settings.
Managing Multiple Accounts
Ultimate Security supports multi-account management. You can add multiple Cloudflare accounts and switch between them at any time to manage different security zones without leaving your WordPress site.
Security Tip: Never share your Global API Key. Using a Scoped API Token is the safest way to connect, as it only gives the plugin access to the specific settings it needs to keep your site safe.