Skip to content
Managed Cloudflare WAF

Cloudflare WAF, configured and operated

Cloudflare WAF checks every web and API request at Cloudflare's edge against managed rules, your own custom rules and rate limits. Vigilbase sets those rules up for your applications, fixes false positives with narrow exceptions and runs every change through change control.
Overview

What is Cloudflare WAF?

Cloudflare WAF is the web application firewall built into Cloudflare's network. It checks incoming web and API requests and filters unwanted traffic using rulesets: managed rules that Cloudflare writes and updates, custom rules you write, and rate limiting rules. Some form of it is available on every plan.

Security features built on Cloudflare's Ruleset Engine run in a fixed order: HTTP DDoS protection, then custom rules, rate limiting rules, managed rules and Super Bot Fight Mode. A terminating action such as Block or Managed Challenge stops the request there, so it never reaches the later phases.

Rules that fit at go-live drift as applications change. WAF rules need to change when you ship a feature, and a false positive needs someone who can trace a blocked request to the rule behind it.

The order Cloudflare checks a request

  1. HTTP DDoS protection

    Layer 7 attack mitigation runs first.

  2. Custom rules

    Your own expressions: block, challenge, skip or log.

  3. Rate limiting rules

    Act when a client exceeds the rate you set.

  4. Managed rules

    The Cloudflare Managed and OWASP Core rulesets.

  5. Super Bot Fight Mode

    Acts on likely automated traffic.

  6. Your origin

    Only requests that no phase stopped.

A terminating action such as Block or Managed Challenge stops the request at that phase, so the later phases never see it.
How it works

How Cloudflare WAF works

The WAF combines rules Cloudflare maintains, rules you write and scores Cloudflare calculates for each request.

Managed rulesets

The Cloudflare Managed Ruleset and the Cloudflare OWASP Core Ruleset cover common attacks and are updated by Cloudflare. Free plans get the Free Managed Ruleset instead. Some Cloudflare Managed rules are off by default to limit false positives.

OWASP scoring and paranoia levels

Each matching OWASP rule adds to a cumulative threat score, and the ruleset acts when the score crosses a threshold (Medium, 40, by default). Paranoia levels PL1 to PL4 catch more as they rise, and can block more legitimate traffic too.

Custom rules

Custom rules match request fields with expressions and apply actions such as block, managed challenge or skip. The number of rules and regex support depend on the plan.

Rate limiting rules

Rate limiting rules count matching requests and act when a client exceeds the rate you set. Cloudflare notes they are not designed to let a precise number of requests reach your origin.

Attack score and leaked credentials

WAF attack score uses machine learning to rate each request from 1 to 99 for how likely it is to be malicious. Leaked credentials detection checks submitted credentials against known breach data.

Exceptions and overrides

An exception skips a managed ruleset or specific rules for matching traffic; an override changes a rule's action or turns it off. Exceptions take priority over overrides, so their scope matters.

Plans

Which Cloudflare plans include which WAF features

Every plan has a WAF. The managed rulesets, rule counts, detections and testing tools grow with the plan.
PlanWhat it includes
FreeFree Managed Ruleset, 5 custom rules, 1 rate limiting rule, the leaked-password detection field and sampled Security Events.
ProCloudflare Managed Ruleset and Cloudflare OWASP Core Ruleset, 20 custom rules, 2 rate limiting rules, leaked credentials detection for username and password pairs, and full Security Events.
BusinessEverything on Pro, plus 100 custom rules with regex support, 5 rate limiting rules, the WAF attack score class, Security Events alerts and account-level Security Analytics.
Enterprise1,000 custom rules, the full WAF attack score, the Log action for testing rules before enforcing them, payload logging, account-level WAF configuration and up to 90 days of Security Analytics. Rate limiting rule counts depend on the contract; Advanced Rate Limiting and malicious uploads detection are paid add-ons.

Cloudflare's prices change, so this table lists capabilities only. Vigilbase sells Cloudflare Enterprise licences and runs the WAF under Managed Cloudflare. For one domain on a monthly plan, Vigilbase Shield is the pre-Enterprise option with managed WAF rules, DDoS protection and Super Bot Fight Mode.

What each Cloudflare plan includes
Common problems

Common WAF problems Vigilbase handles

Most WAF incidents on a running account are not new attacks. They are rules that no longer match the application.

Legitimate customers blocked

A form or checkout fails after a security change. We reproduce it safely, correlate the request with a security event and change only the rule involved, then verify the journey and the protection that remains.

Managed WAF operations and change control

Rules left on defaults

Months after go-live, the WAF is often still on defaults and nobody knows which exceptions were meant to be temporary. We review rule coverage, retire stale exceptions and record why each one exists.

Changes nobody can explain

When audit asks who changed a WAF rule last quarter, someone in the dashboard is not an answer. Every change we make carries its evidence, approver, rollback and verification.

Campaign traffic and checkout failures

A launch brings new customers and automated abuse at the same time. We separate the control that interfered from application or payment faults before adjusting anything.

An application under attack

The agreed package names who leads the incident. If the service is not behind Cloudflare yet, emergency onboarding moves it there first and then stabilizes the attack.

When to request Cloudflare emergency help
Alert noise

How to cut Cloudflare WAF alert noise

To cut Cloudflare WAF alert fatigue without more SOC analysts, reduce the events at the source and stop sending every event to a person. Most of the noise usually comes from a few rules matching legitimate traffic: fix those with narrow exceptions and threshold changes, test new rules before they block anything, and let only the events that need a decision reach your team.

Why false positives spike at peak hours

False positives tend to rise at peak hours because more legitimate traffic means more requests the rules were never tuned for. Larger checkout forms and file uploads add to the OWASP anomaly score, campaign pages and new app versions send requests in new shapes, and many customers sharing one mobile carrier or office IP address can trip a rate limit counted per IP.

Cloudflare notes that file uploads can trigger the OWASP rule 949110, Inbound Anomaly Score Exceeded, especially when the score threshold is set to High, because fewer matching rules are needed to reach it.

A tuning workflow, step by step

  1. Measure the noise

    In Security Events, group the last 7 to 30 days by action and by service, then expand the busiest events to see the rule, host and path. Free plans show sampled logs only and busy zones can be sampled on any plan, so treat counts as lower bounds; a shorter time frame reduces sampling.

  2. Rank the rules

    List the handful of rules behind most of the events. For each one, decide whether the matched requests are attacks or your own customers, partners and webhooks.

  3. Fix false positives narrowest-first

    Skip one rule for one path and method, not a whole ruleset. Cloudflare's own advice is that if one specific rule causes false positives, you disable that rule and not the entire ruleset.

  4. Tune the OWASP Core Ruleset one setting at a time

    If rule 949110 blocks legitimate traffic, either lower the score threshold from Medium (40, the default) to Low (60), so more rules must match before the WAF acts, or turn off the specific OWASP rules that matched, individually or by tag. Stay on paranoia level PL1, the default, until false positives are under control: PL2 to PL4 catch more and block more legitimate traffic.

  5. Test new rules before enforcing them

    On Enterprise, deploy a new custom rule with the Log action and review what it matches. Log is not available on other plans, so Cloudflare recommends starting with Managed Challenge, reviewing the matched requests in Security Events, and then switching to Block.

  6. Watch managed rule releases

    Cloudflare adds managed rules on a regular seven-day cycle and in emergency releases, and the overrides you set also apply to future rules. If a new rule causes a jump in events, turn it off or change its action, then investigate.

  7. Retire what was temporary

    Give every exception and every Log or Managed Challenge test rule a review date and an owner. A test rule left on Log, or a skip rule nobody removed, is how protection quietly weakens.

The two scores you tune

Most tuning comes down to two numbers: the OWASP threshold that decides when the OWASP Core Ruleset acts, and the attack score your custom rules can act on.

OWASP score threshold

A request's score is the sum of every OWASP rule it matched. The ruleset acts once the score reaches the threshold.

Acts after fewer rule matchesLets more legitimate traffic through
  • High 25
  • Medium 40 (Default)
  • Low 60
  • Scores the default setting, Medium, acts on
  • Example request scoring 45. The ruleset acts on it at High and Medium, and lets it through at Low.
If rule 949110 blocks legitimate traffic, try Low before you turn off rules, and stay on paranoia level PL1 until false positives are under control.

WAF attack score classes

Cloudflare scores every request from 1, almost certainly malicious, to 99, likely clean.

  1. Attack

    1–20

    attack
  2. Likely attack

    21–50

    likely_attack
  3. Likely clean

    51–80

    likely_clean
  4. Clean

    81–99

    clean
  • AttackChallenge, then block
  • Likely attackPair with a path or bot score
Business
cf.waf.score.class eq "attack"
Enterprise
cf.waf.score le 20
Business plans can act on the class; Enterprise can also use the number. Likely attack can contain false positives, so do not block it on its own.

Under Managed Cloudflare, Vigilbase tunes these settings for the applications in scope and records every change with its approver and rollback.

What Managed Cloudflare includes

Example rule expressions

These use Cloudflare's Rules language. Each one is scoped as narrowly as the fix needs: a host, a path and a method before an IP address, and specific rules before a whole ruleset.

GoalRule expressionAction
Exception for one checkout stephttp.host eq "shop.example.com" and http.request.uri.path eq "/checkout/address" and http.request.method eq "POST"Skip only the managed rules that matched
Exception for an upload endpointstarts_with(http.request.uri.path, "/api/uploads/")Skip only the OWASP rules that matched. Cloudflare also suggests malicious uploads detection for this traffic.
Exception for a payment provider's webhooksip.src in $payment_webhooks and http.request.uri.path eq "/webhooks/payments"Skip only the rules that matched, with the provider's published addresses in the IP list
Admin area exception (Cloudflare's example)http.host eq "example.com" and starts_with(http.request.uri.path, "/admin")Skip
Act on clear attacks (Business)cf.waf.score.class eq "attack"Managed Challenge first, then Block
Act on clear attacks (Enterprise)cf.waf.score le 20Log first, then Managed Challenge or Block

Cloudflare advises against blocking every attack score under 50, because the 21 to 50 likely-attack range can contain false positives. Use 20 or lower, or pair a looser score with a path or bot score condition.

Tuning tools by Cloudflare plan

How far you can tune depends on the plan: the number of custom rules, regex, the Log action and the attack score all grow with it.

FeatureFreeProBusinessEnterprise
Custom rules5201001,000
Regex in rule expressionsNoNoYesYes
Log action for testing rulesNoNoNoYes
Cloudflare OWASP Core Ruleset (thresholds and paranoia levels)NoYesYesYes
WAF attack score in rulesNoNoClass only (cf.waf.score.class)Full 1–99 score, plus SQLi, XSS and RCE scores
Security Events in the dashboardSampled logs onlyAllAllAll
Security Events exportNoNoUp to 500 eventsUp to 500 events
Payload logging (shows the string that matched)NoNoNoYes

Custom rule limits are counted separately at zone level and account level. Cloudflare changes its plans, so check the sources below before you buy.

Rather not tune it yourself? Under Managed Cloudflare, Vigilbase sets up the rules for your applications, investigates every false positive and runs each change through change control.

What Managed Cloudflare includes
Managed Cloudflare

What Vigilbase does when it operates Cloudflare WAF

Vigilbase sells the Cloudflare licence and runs the account, or takes over an account you already have after a review. Agents draft changes, apply them once a person on your team approves, and verify the result; security analysts review anything that could disrupt production, users or access.
  • Rules set up for your applications

    We review WAF, DDoS, bot, TLS, DNS, rate limiting and origin settings, then deploy managed and custom rules for the applications in scope. We do not leave a managed ruleset on defaults and call it done.

  • False-positive investigation

    We find the security event behind a blocked request, confirm which rule matched and apply the narrowest exception that restores the legitimate journey. Temporary exceptions get a review date and a named reviewer.

  • Change control with a record

    Routine changes follow an agreed rhythm and emergency changes have their own path. Each change keeps the previous configuration, the approver, the rollback and the verification, which is what you show internal audit.

  • Rules that keep up with releases

    A new mobile client, payment integration or campaign page changes what legitimate traffic looks like. We work with your application team so the rules follow the application.

  • Reports and recommendations

    Reports cover blocked threats, changes and recommendations, so you can see what the WAF stopped and what moved.

  • Coverage set by your package

    Core is business-hours governance and change management, with best-effort response. Priority adds 24/7 operations, active threat mitigation within the SLA and a named technical account manager. Critical adds immediate escalation and senior incident leadership.

Vigilbase OS

How Vigilbase OS triages Cloudflare WAF events

Vigilbase OS connects to your Cloudflare account through Cloudflare's API. It reads security events, snapshots of your WAF custom rules and the account audit log, and runs detections on each batch. Blocking and challenging still happen in Cloudflare today: OS does not sit in the request path.

Cloudflare is the provider where live response actions run today. Vigil drafts each action, and a person on your team approves it before it runs; nothing runs automatically. The record shows the investigation, the actions taken and the verification. For providers without live actions, the investigation returns the steps for your team to complete.

  • What it flags

    Scanning from one network, a reported abusive address getting through, bursts of scripted sign-ups, account access changes, and web protection weakened: a blocking rule turned off or deleted, a skip rule added, or a block relaxed to log or allow. That last one catches a forgotten test rule.

  • Only real decisions reach you

    Vigil, our AI agent, investigates each case and gives one of four verdicts: benign, keep an eye on it, known exposure, or needs a person. Every verdict cites the evidence, and only the cases that need a person reach your team.

  • Fixes it drafts

    Blocking or challenging an address, adding it to an IP list your rules already use, rate-limiting one address, or tightening a skip rule that lets attacks through. After an approved change runs, OS checks the result and records it.

  • What it cannot see

    Security events cover only requests a rule acted on, unless an Enterprise zone sends full request logs through Logpush. Cloudflare may sample events on busy zones, so counts are lower bounds.

FAQ

Frequently asked questions

What are Cloudflare WAF rules?

Cloudflare WAF uses three kinds of rules: managed rules that Cloudflare writes and updates, custom rules you write as expressions on request fields, and rate limiting rules that act when a client exceeds a request rate. Exceptions and overrides adjust how the managed rules apply to your traffic.How a web application firewall worksApplication and API protection

How do you fix a Cloudflare WAF false positive?

Find the security event for the blocked request, confirm which rule matched and apply the narrowest exception that fixes the legitimate journey. An exception that skips a whole ruleset has a very different effect from one that skips a single rule.Save the previous configuration and the rollback before the change, verify the journey and the protection that remains afterwards, and give temporary exceptions a review date and a named reviewer.Managed WAF operations and change control

How do we reduce alert fatigue from our Cloudflare WAF without hiring more SOC analysts?

Cut events at the source and automate the first look at the rest. Fix the few rules behind most false positives with narrow exceptions, tune the OWASP threshold before raising the paranoia level, and test new rules with Log (Enterprise) or Managed Challenge before they block. Vigilbase OS then investigates the remaining events and sends only the cases that need a decision to your team, with the fix drafted for approval.Managed WAF operations and change controlGet started with Vigilbase OS

Why do false positives from our Cloudflare WAF block legitimate traffic during peak hours?

More traffic means more legitimate requests the rules were never tuned for. Larger checkout forms and file uploads can push the OWASP anomaly score past its threshold, campaign pages and new app versions bring new request shapes, and customers sharing one carrier or office IP address can trip a per-IP rate limit. Find the matching rule in Security Events and apply the narrowest exception rather than turning off the ruleset.Managed WAF operations and change controlHow a web application firewall works

Do you operate Cloudflare WAF outside business hours?

Yes, on Priority and Critical. Vigilbase runs WAF changes and Cloudflare incidents outside business hours on the agreed scope. Core is business-hours governance.WAF work still follows the agreed authority and change-control path. Record the affected application, the rule change, and the verification result so that the team can review what changed and whether legitimate access was restored.Managed WAF operations and change controlCoverage and incident response commitments

Put your Cloudflare WAF in accountable hands

Tell us which applications sit behind the WAF and what has broken before. We will scope the licence, the rules and the operating coverage together.