What Traffic Should You Use to Test a Cloudflare Security Rule?

What traffic should a small business include when testing a Cloudflare security rule?

Create a small test matrix before judging a Cloudflare security rule. Include critical legitimate journeys, approved bots or integrations, requests that should match the rule and requests that should not. Where lawful and practical, vary relevant request characteristics and network contexts instead of testing only from the office or a cloud VM. Record the expected and actual result for every case. Treat reported bot-score differences between residential and datacentre IPs as community observations, not thresholds that apply to every Cloudflare zone.

Why one test source can give a distorted picture

A Cloudflare Community member reported residential IPs scoring 1–30 while their datacentre test IPs scored 90+ on Cloudflare bot score tests. Use the report as a reason to diversify test sources, not as a score threshold or a promise about how another Cloudflare zone will behave.

Sources: How to test your Cloudflare bot rules with realistic traffic before going live - Application Security / Bot Management - Cloudflare Community.

The same community author said office IPs and cloud VMs may already be in known-good or known-bad buckets rather than simulating a real bot operator. Choose the network contexts that are relevant to the business and record their limitations beside each test case.

Sources: How to test your Cloudflare bot rules with realistic traffic before going live - Application Security / Bot Management - Cloudflare Community.

  • Do not assume office traffic represents customers.
  • Do not use reported bot scores as universal cut-offs.
  • Vary relevant contexts where practical.

List the legitimate journeys the rule must preserve

List high-value pages, form submissions, sign-ins, checkouts, APIs and approved automated services before selecting any test requests. Give each row a plain-language journey name and state what successful access looks like, so an unexpected challenge or block has an obvious business consequence.

Use an origin-readiness checklist to identify important HTTPS paths, and include AI crawler access when those crawlers are intended to reach the website.

  • Include pages and transactions that create value.
  • Include sign-ins, forms, APIs and approved automation.
  • Name the business impact if a case fails.

Add positive, negative and boundary cases

Build cases that should match the rule, should not match the rule, and sit near its boundary where an exclusion or condition may be ambiguous. For every case, record the journey, request context, case type, expected action, actual result, uncertainty and follow-up owner.

  • Use match, non-match and boundary cases.
  • Record expected and actual action in the same row.
  • Assign a follow-up owner to uncertainty.

Record misses as useful findings, not just failures

Cloudflare says requests that got through its testing helped create new detections to harden security for Cloudflare customers. Preserve each missed unwanted case with enough detail to revise the expression or action and retest it, rather than treating the miss as a forgotten exception.

Sources: We tested our own WAF with frontier AI models. Here’s what we found | Cloudflare Blog.

  • Keep evidence of misses.
  • Use misses to improve the next test cycle.
  • Do not confuse a miss with approval to ignore risk.

Use a coverage check before accepting the sample

Accept a traffic sample only after it includes critical journeys, approved automation, expected matches, expected non-matches, relevant contexts and a named owner for unresolved cases. Check valuable AI search access separately where it matters, because a bot-related change can affect automated visitors the business intends to permit.

  • Check customer journeys.
  • Check approved automation.
  • Check expected matches, non-matches and unresolved cases.

Cloudflare rule traffic test matrix

Create one row per website journey or approved service. The columns show the request context, case type, expected action, actual result, remaining uncertainty and person responsible for follow-up.

Journey or serviceRequest contextCase typeExpected actionActual result, uncertainty and owner
Contact form submissionNormal visitor contextExpected non-matchAllowed without an unexpected challengeRecord result, uncertainty and owner
Account sign-inRelevant customer contextBoundary caseAction matches documented rule purposeRecord result, uncertainty and owner
Approved integration API requestApproved service contextExpected non-matchContinues to work as intendedRecord result, uncertainty and owner
Suspected unwanted patternAuthorised test contextExpected matchProposed protective action is observedRecord result, uncertainty and owner

Use only lawful and authorised test activity. This worksheet is for evaluating defensive rules, not for evading security controls.

When this is not the right approach: Do not use this worksheet to test systems you do not own or have permission to assess. It also cannot replace a provider’s current documentation for available Cloudflare features.

What follow-up questions matter most?

Which legitimate requests should be tested first?
Start with the pages, forms, sign-ins, checkouts, APIs and integrations whose interruption would matter most. Add approved automated services only where the business expects them to have access.
What should we do with unwanted traffic that gets through?
A missed unwanted request is useful evidence for revising a rule. Record the request characteristics, expected result and actual result so the next test cycle has a specific case to assess.
Can one office or cloud connection represent all visitors?
No. A community member reported a substantial difference between residential and datacentre bot scores, but that observation is not a universal Cloudflare threshold. Use it as a reason to test relevant contexts rather than as a prediction of your result.

What steps does this workflow follow?

Traffic sample worksheet for Cloudflare rules

  1. List critical journeys: Write one row for each page, form, sign-in, checkout, API or approved automated service that the rule must not disrupt.
  2. Add case types: For each row, identify an expected match, an expected non-match or a boundary case, then state the expected action.
  3. Vary relevant contexts: Where lawful and practical, use more than one relevant request or network context instead of treating one office or cloud source as representative.
  4. Record actual outcomes: Capture the actual action, customer impact, uncertainty and follow-up owner for each case.
  5. Check coverage: Do not accept the sample until critical journeys, approved automation, expected matches, expected non-matches and unresolved cases have been reviewed.