Documentation Schedule a pilot

DDoS Protection

Cloudflare DDoS Protection applies automatic detection and mitigation for network-layer and application-layer denial-of-service attacks on traffic that transits the Cloudflare network. This page documents the mitigation path, configuration objects, constraints and plan availability.

Document control

Dana, technical writer at Integrity
Dana
Technical writer, Integrity Czech Republic s.r.o.

Document control. Vendor: Cloudflare, Inc. Document owner: Dana, technical writer, Integrity Czech Republic s.r.o. Last reviewed: 2026-08-31. Content snapshot of the referenced Cloudflare documentation: 2026-08-28. Figures in this document were verified against the sources listed under References on the dates shown there; Cloudflare changes limits and packaging without notice, so verify at the source before you design against a value.

Overview

A distributed denial-of-service attack attempts to make a service unavailable by saturating a resource: link capacity, packet processing, connection state or application concurrency. Attacks are commonly grouped by layer. Network-layer attacks (L3 and L4) target bandwidth and packet handling. Application-layer attacks (L7) issue HTTP requests that are individually well formed and exhaust origin compute or backend dependencies.

Cloudflare mitigates attacks against traffic that reaches its network, either because a hostname is proxied through Cloudflare, because prefixes are announced through Magic Transit, or because a TCP or UDP application is fronted by Spectrum. Traffic that reaches the origin by another path is not mitigated.

Cloudflare states that DDoS mitigation is provided without metering by attack size or frequency on all plans (https://developers.cloudflare.com/ddos-protection/, retrieved 2026-08-28). This describes billing for mitigation, not a guarantee of availability under arbitrary load.

Cloudflare does not publish a network capacity figure in terabits per second on its public network page (retrieved 2026-08-28). Where a capacity commitment is required, obtain it in the contract rather than from documentation.

Architecture

Cloudflare announces the same IP prefixes from its data centres using anycast. Each source is routed to a nearby announcing location, so a geographically distributed attack is divided across many locations instead of converging on one scrubbing site. Mitigation therefore happens in a distributed manner near the sources, and mitigation capacity is the aggregate of the participating locations rather than the capacity of a single site.

At each location, sampling systems compare packet and request characteristics against attack fingerprints in the managed DDoS rulesets and against traffic profiles. When a signature matches, a mitigation rule is applied to the data path. Network-layer mitigation is enforced in packet filters. Application-layer mitigation is enforced by the HTTP DDoS Attack Protection managed ruleset, which can block or challenge matching requests.

Mitigation is autonomous: it is applied by the platform without a customer action or a support request. Cloudflare describes detection and mitigation as beginning automatically and does not publish a guaranteed time to mitigate.

Three delivery models exist and they differ materially:

Capabilities

CapabilityBehaviourPlan or tierSource
Network-layer DDoS managed rulesetFingerprint-based mitigation of L3 and L4 floods applied in the packet data path.All plans for proxied traffic; applies to Magic Transit and Spectrum where subscribed.Network-layer DDoS ruleset
HTTP DDoS Attack Protection managed rulesetDetects HTTP request floods and applies a configured action to matching traffic.All plans; override granularity differs by plan.HTTP DDoS ruleset
Ruleset overridesAdjust sensitivity level and action per rule or per ruleset, scoped by expression where supported.Override options are plan dependent; Free is the most restricted.Managed rulesets
Adaptive DDoS ProtectionBuilds a profile of normal traffic per zone or origin and mitigates deviations from it.Enterprise with the Advanced DDoS Protection subscription.Adaptive DDoS Protection
SpectrumProxies arbitrary TCP and UDP applications through the Cloudflare network with DDoS mitigation applied.Enterprise, with limited protocol support on Pro and Business for specific use cases; verify at source.Spectrum
Magic TransitBGP announcement of customer prefixes with clean-traffic return to the customer network.Enterprise.Magic Transit
Attack analytics and alertingPer-attack reporting, mitigation counts and configurable notifications by email, webhook or PagerDuty.All plans; detail level and retention differ.DDoS alerts

Configuration model

DDoS protection is delivered as managed rulesets in the ruleset engine, in the same model used by the WAF. Individual rules are vendor-maintained and are not editable. Behaviour is adjusted with overrides.

Two override dimensions exist. Sensitivity controls how readily a rule triggers, with levels typically expressed as default, medium, low and essentially off. Action controls what happens on a match, for example block, managed challenge or a lighter mitigation. Overrides can be applied at ruleset level, at rule level, or scoped by expression where the plan supports it.

Adaptive DDoS Protection is configured separately and profiles traffic by dimension, for example by client country, ASN, user agent or a defined origin group. It is deployed in a monitoring posture first and then switched to enforcement.

For Magic Transit, configuration includes prefix onboarding and BGP announcement control, tunnel configuration for clean-traffic return, and Magic Firewall rules for network-layer filtering. For Spectrum, configuration includes the application definition, origin address, protocol and port.

All of these objects are manageable through the dashboard, the API and the Terraform provider.

Limits and constraints

Values and entitlements below are from Cloudflare documentation retrieved 2026-08-28 and change without notice.

Plan availability

Plan or productIncluded
Free, Pro, BusinessNetwork-layer and HTTP DDoS managed rulesets for proxied traffic, without metering by attack size or frequency. Override control increases with plan.
EnterpriseAs above, plus finer override control, richer analytics and alerting, and eligibility for the Advanced DDoS Protection subscription.
Advanced DDoS Protection (Enterprise subscription)Adaptive DDoS Protection and advanced analytics.
SpectrumProtection for arbitrary TCP and UDP applications. Enterprise, with narrower protocol availability on some paid plans.
Magic TransitNetwork-layer protection for customer-owned IP prefixes. Enterprise.

Accurate as of 2026-08-28 against Cloudflare public documentation. Packaging changes without notice. Confirm current entitlements at https://developers.cloudflare.com/ddos-protection/ and https://www.cloudflare.com/plans/.

Deployment

Prerequisites.

Staged validation. Onboard a representative non-production zone or hostname first. Verify that proxying does not alter application behaviour, that client IP addresses are read from the correct header, and that TLS settings match the origin capability. Generate representative load and confirm that legitimate traffic is not challenged.

Configuration.

  1. Proxy the hostnames in scope, or announce prefixes through Magic Transit, or define Spectrum applications for non-HTTP services.
  2. Rotate origin IP addresses so that previously published addresses no longer serve the application.
  3. Restrict the origin firewall to accept traffic only from Cloudflare IP ranges (https://www.cloudflare.com/ips/), or remove inbound exposure entirely by connecting the origin with Cloudflare Tunnel.
  4. Enable Authenticated Origin Pulls so that the origin rejects connections that do not present the Cloudflare client certificate.
  5. Review the HTTP DDoS managed ruleset overrides. Leave default sensitivity in place unless a specific false positive is observed.
  6. Where Advanced DDoS Protection is licensed, deploy Adaptive DDoS Protection in monitoring mode before enforcing it.

Cutover. Lower DNS TTLs in advance, switch traffic during an agreed window, and keep the previous origin path available but firewalled until verification completes.

Verification.

Rollback. Restore the previous DNS records or withdraw the BGP announcement, re-open the origin firewall to the previous source ranges, and confirm resolution and reachability before closing the incident. Because rollback re-exposes the origin address, treat it as a temporary state and repeat the address rotation before the next attempt.

Operational considerations

Configure attack alerts to a channel that is monitored outside business hours, and agree an incident runbook that names who may change ruleset overrides during an attack. Overrides changed under pressure are a common source of prolonged incidents.

During an attack, distinguish between mitigated traffic and origin impact. A high mitigation count with stable origin latency indicates the mitigation is working. Origin impact with low mitigation counts usually indicates either a bypass path or an attack that resembles legitimate traffic and needs rate limiting or caching rather than DDoS rules.

Keep the origin lockdown current. Cloudflare IP ranges change; subscribe to the published ranges and automate firewall updates, or use Cloudflare Tunnel to remove the dependency on address lists.

Retain post-incident reports and correlate them with origin metrics. Where Logpush is available, export the data rather than relying on dashboard retention.

Failure modes to plan for: an origin address rediscovered through a newly issued certificate, a non-proxied subdomain reintroduced by an automation script, a third-party integration blocked by a sensitivity override applied during an incident and never reverted, and mail infrastructure on the same address space as the web origin.

Known caveats

Interoperability

DDoS managed rulesets, WAF rules and rate limiting rules all execute in the ruleset engine, in phase order. DDoS mitigation handles volumetric and fingerprintable floods; WAF and rate limiting handle targeted abuse of specific endpoints. The three are complementary and are usually configured together.

Bot Management fields can be referenced in custom rules to filter automated traffic that is below DDoS thresholds.

Cloudflare Tunnel removes inbound origin exposure entirely and therefore composes well with DDoS protection for origins that do not need to accept direct connections.

Magic Transit composes with Magic Firewall for network-layer policy and with Magic WAN for site connectivity. Spectrum composes with the same DDoS managed rulesets for non-HTTP protocols.

FAQ

Are non-HTTP services covered by a standard zone plan? No. A zone plan covers HTTP and HTTPS for proxied hostnames. TCP and UDP services require Spectrum, and whole networks require Magic Transit.

What is required for mitigation to apply to a service? The traffic must transit Cloudflare. That means a proxied DNS record, a Spectrum application, a Magic Transit announcement or a Cloudflare Tunnel. A DNS-only record does not receive mitigation.

How is a suspected bypass confirmed? Compare origin access logs against Cloudflare request counts for the same period. Requests present at the origin with source addresses outside the Cloudflare ranges indicate a direct path that must be closed at the origin firewall.

References

Content snapshot: 2026-08-28.

Changelog

DateChangeAuthor
2026-08-31Rewritten as a technical reference. Added limits and plan availability tables with sources.Integrity documentation team
2026-08-28Initial publication.Integrity documentation team

Contents

59 pages mirrored from the Cloudflare documentation for ddos-protection.

Pages

About

Advanced DDoS systems

Best practices

Managed rulesets

Reference

Request your free pilot

Schedule a pilot