Docs
← Back to site

IP Access RulesUpdated

2 min readUpdated November 18, 2026

IP Access Rules allow, block or challenge an IP address, IP range, country or network (ASN) across a whole Cloudflare account. They take effect straight away on every zone in the account, including zones you don’t manage with the plugin, with no deploy step.

Go to WAF Manager → IP Access Rules and choose the Account. Changing it here doesn’t change the active account on other screens.

IP Access Rules screen listing account-wide allow, block and challenge rules

Token permission: Account → Account Firewall Access Rules → Edit. If the token lacks it, the screen explains how to add it.

Add a rule#

Click Add Rule, then fill in the dialog:

Add IP Rule dialog with target type, value, action and note
Target type Example value
IP Address 203.0.113.10 or 2001:db8::1
IP Range (CIDR) 203.0.113.0/24 or 2001:db8::/32
Country Code US, GB, DE (two letters)
ASN AS13335

Then choose the Action:

  • Allow (Whitelist): the visitor skips Cloudflare’s security checks. Use it for your office, your servers and trusted services.
  • Block: the visitor is refused.
  • Managed Challenge: Cloudflare decides whether to show a challenge.
  • JS Challenge: the visitor’s browser must run a short JavaScript check.

Add a Note (optional), such as “Office IP” or “Client server” (up to 200 characters), and click Add Rule.

Blocking a whole country needs a Cloudflare Enterprise plan; on Free, Pro and Business Cloudflare rejects it. Choose Managed Challenge instead, or use Rule 4 on the WAF Rules screen to challenge visitors from outside the countries you serve.

Find, edit and delete rules#

  • Use the tabs (All, Allow, Block, Managed Challenge, Challenge, JS Challenge) or Search IP, country, note… to find rules. Country rules show the country’s flag.
  • Edit changes a rule’s action or note. To change the target, delete the rule and add a new one.
  • The × button deletes a rule after you confirm. The change applies to every zone straight away.

When to use IP Access Rules#

  • Block an attacking IP or range across every client site at once.
  • Allow your office, monitoring or backup servers everywhere.
  • Keep long IP lists out of WAF Rule 1, which has a 4,096-character limit. See Cloudflare Free plan limitations.

IP Access Rules are separate from the five WAF rules: deploying WAF rules never adds, changes or removes them.

If the API token can see several Cloudflare accounts, rules go to the first account it can see. Use a separate token, saved as its own account in the plugin, for each client’s Cloudflare account.

Share:

Was this helpful?

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only