Cloudflare DDoS Protection

Last updated Aug 14, 2026 Detect and mitigate distributed denial-of-service (DDoS) attacks automatically.

Available on all plans

Cloudflare automatically detects and mitigates distributed denial-of-service (DDoS) attacks via our autonomous DDoS systems.

These systems include multiple dynamic mitigation rules exposed as DDoS attack protection managed rulesets. You can customize the mitigation rules included in these rulesets to optimize and tailor the protection to your needs.


Features

Managed rulesets

Protect against a variety of DDoS attacks across layers 3/4 (network layer) and layer 7 (application layer) of the OSI model.

Use Managed rulesets

Adaptive DDoS Protection

Get increased protection against sophisticated DDoS attacks on layer 7 and layers 3/4.

Use Adaptive DDoS Protection

Advanced TCP Protection

Detect and mitigate sophisticated out-of-state TCP attacks such as randomized and spoofed ACK floods, or SYN and SYN-ACK floods.

Use Advanced TCP Protection

Advanced DNS Protection

Protect against DNS-based DDoS attacks, specifically sophisticated and fully randomized DNS attacks such as random prefix attacks.

Use Advanced DNS Protection

Programmable Flow Protection

Deploy custom eBPF packet logic across Cloudflare's network to inspect and mitigate DDoS attacks against UDP-based Layer 7 protocols.

Use Programmable Flow Protection


Availability

Free Pro Business Enterprise Enterprise with Advanced DDoS Protection add-on
Availability Yes Yes Yes Yes Yes
Standard, unmetered DDoS protection (layers 3-7) Yes Yes Yes Yes Yes
HTTP DDoS attack protection Yes Yes Yes Yes Yes
Network-layer (L3/4) DDoS attack protection Yes Yes Yes Yes Yes
Managed rules customization Yes Yes Yes Yes, with Log action Expression fields & multi-rule support
Proactive false positive detection for new rules No No No Yes Yes
Adaptive DDoS protection Only error adaptive rules Only error adaptive rules Only error adaptive rules Only error adaptive rules All adaptive rules
Traffic profiling signals for adaptive DDoS protection Error rates only Error rates only Error rates & historical trends Error rates & historical trends Error rates & historical trends, client country, user agent, query string, ML-scores
Advanced TCP Protection Available to Magic Transit customers Available to Magic Transit customers Available to Magic Transit customers Available to Magic Transit customers Available to Magic Transit customers
Advanced DNS Protection Available to Magic Transit customers Available to Magic Transit customers Available to Magic Transit customers Available to Magic Transit customers Available to Magic Transit customers
Number of ruleset overrides allowed 1 1 1 1 10
Alerts Yes Yes Yes Yes Advanced alerts with filtering

Spectrum

Provides security and acceleration for any TCP or UDP based application.

Magic Transit

A network security and performance solution that offers DDoS protection, traffic acceleration, and more for on-premise, cloud-hosted, and hybrid networks.

Web Application Firewall (WAF)

Get automatic protection from vulnerabilities and the flexibility to create custom rules.

Was this helpful?

YesNo

On this page

Cloudflare DDoS Protection - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/ddos-protection/#page","headline":"Cloudflare DDoS Protection","description":"Detect and mitigate DDoS attacks automatically across all Cloudflare plans.","url":"https://developers.cloudflare.com/ddos-protection/","inLanguage":"en","image":"https://developers.cloudflare.com/ddos-protection/og.png?v=2845ed87dc8cac22","dateModified":"2026-08-14","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Set up and fine-tune DDoS protection for your zones, Spectrum apps, and Magic Transit prefixes. title: Get started image: https://developers.cloudflare.com/ddos-protection/get-started/og.png?v=70e070a85b8741f8


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ddos-protection/llms.txt
Use this file to discover all available pages before exploring further.