- FAQ (6)·续
- Can I exclude specific user agents from HTTP DDoS protection?
- Does Cloudflare charge for DDoS attack traffic?
- How does DDoS Protection determine whether a SYN flood attack is mitigated by dosd or Advanced TCP Protection?
- How does Cloudflare handle hyper-localized DDoS attacks that may aim to overwhelm a specific Point of Presence (PoP)?
- What is Advanced TCP Protection's Protected Learning functionality?
- Does DDoS Protection protect against email-based attacks?
- On this page
FAQ (6)·续
Can I exclude specific user agents from HTTP DDoS protection?
Yes, you can create an override and use the expression fields to match against HTTP requests with the user agent. There are a variety of fields that you can use.
You can then adjust the sensitivity level or mitigation action.
Refer to the guide on how to create an override.
The use of expression fields is subject to availability.
Does Cloudflare charge for DDoS attack traffic?
No. Since 2017, Cloudflare offers free, unmetered, and unlimited DDoS protection ↗︎. There is no limit to the number of DDoS attacks, their duration, or their size. Cloudflare's billing systems automatically exclude DDoS attack traffic from your usage.
How does DDoS Protection determine whether a SYN flood attack is mitigated by dosd or Advanced TCP Protection?
DDoS managed rules detect and mitigate attacks by finding commonality between attack packets and generating a real-time fingerprint to mitigate the attack.
When the attacks are highly randomized and DDoS managed rules are unable to detect a common pattern among the attack packets, Advanced TCP Protection uses its stateful TCP flowtracking capabilities to determine whether or not packets are legitimate. Advanced TCP Protection also mitigates simpler TCP-based attacks.
Advanced TCP Protection is only necessary and available to Magic Transit customers. For Spectrum and our HTTP services, we leverage the reverse proxy to mitigate sophisticated randomized TCP-based DDoS attacks.
How does Cloudflare handle hyper-localized DDoS attacks that may aim to overwhelm a specific Point of Presence (PoP)?
Hyper-localized DDoS attacks are attacks that target specific PoPs or data centers from botnet nodes that are close to those locations in an attempt to overwhelm them and cause an outage or service disruptions.
However, Cloudflare's defense approach is resilient to these attacks and uses a combination of intelligent traffic engineering, global Anycast, and real-time, autonomous DDoS mitigation to handle hyper-localized DDoS attacks — even those that may temporarily exceed the capacity of a specific Point of Presence (PoP).
Global Anycast Network
Anycast allows multiple servers (PoPs) to share the same IP address, and the Border Gateway Protocol (BGP) routing system ensures user traffic is routed to the nearest or lowest-cost node.
Process
When one PoP is overwhelmed due to a local DDoS flood or as a result of limited capacity, BGP route propagation can be adjusted to shift traffic away from that PoP. Cloudflare can also withdraw BGP announcements from specific peers or upstreams to force traffic to reroute through better-equipped PoPs. Because DDoS traffic originates from multiple geographic regions, Anycast and traffic engineering distributes the attack across Cloudflare's full capacity Anycast network ↗︎ to reduce the burden on a single PoP.
Intelligent Traffic Engineering
Cloudflare uses real-time data and intelligence systems to make decisions about traffic routing, load balancing, and congestion management.
Process
If a specific PoP becomes saturated or experiences attack traffic, Cloudflare's internal traffic engineering systems dynamically steer traffic across alternative paths using traffic shaping, path-aware routing, and dynamic DNS responses.
The system monitors CPU load, network congestion, and traffic type to make smart decisions about whether to reroute or throttle connections.
For Layer 7 (application-level) attacks, Cloudflare can challenge or rate-limit traffic before it reaches application servers. This scenario is similar to some extent to when we take down certain PoPs for maintenance. This can be done automatically via Traffic Manager, and if needed, by our Site Reliability Engineers (SRE).
Real-Time DDoS Mitigation
DDoS managed rules and Advanced DDoS Protection are autonomous and run on every single server independently, while also coordinating locally and globally, contributing to the resilience of each server and PoP. These systems run close to the network edge in every PoP, meaning detection and mitigation happen rapidly, often before any noticeable impact. If traffic exceeds the capacity of one PoP, mitigation rules are replicated to other PoPs to help absorb overflow.
- DDoS managed rules: Detects and mitigates DDoS attacks in real-time. When it detects an attack, it deploys rules within seconds to mitigate the malicious traffic.
- Advanced TCP Protection: Identifies and drops abnormal TCP/IP behavior before it hits application servers.
- Advanced DNS Protection: Identifies and drops abnormal DNS queries behavior before it hits DNS servers.
What is Advanced TCP Protection's Protected Learning functionality?
The Protected Learning functionality enables the Advanced TCP Protection system to overcome Internet routing chaos while allowing your legitimate traffic through and blocking DDoS attacks at the edge.
Anycast and BGP are protocols that help route Internet traffic by sending it to the nearest or most optimal data center. Occasional network events—such as a data center being taken offline for maintenance or changes in Internet routing—can cause an established connection to be rerouted to a different data center.
Cloudflare's flow inference functionality, also known as Protected Learning, is specifically designed to handle this. When a TCP connection, such as a flow, shifts to a new data center, our system observes that it is an existing connection that does not appear in the local flow table. Instead of immediately blocking the flow as an unknown connection that may be part of a DDoS attack, our system uses a proprietary process to verify if the connection is legitimate. It might challenge the acknowledgment (ACK) packets of the flow to ensure it is not part of a DDoS attack. Once the flow passes our checks, we allow it to continue without interruption. This ensures that even rare, legitimate shifts in traffic do not break your long-running connections while keeping your network protected against DDoS attacks.
Does DDoS Protection protect against email-based attacks?
No. Cloudflare DDoS Protection safeguards web and network infrastructure against DDoS attacks at layers 3, 4, and 7 of the OSI model. This includes TCP, UDP, DNS, and HTTP/S traffic.
DDoS Protection does not inspect or mitigate threats delivered over email protocols such as SMTP, IMAP, or POP3. To protect against email-borne threats such as phishing, business email compromise (BEC), spoofing, and malware delivered via email, use Cloudflare Email Security.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ddos-protection/frequently-asked-questions/#page","headline":"FAQ","description":"Answers to common questions about DDoS attack events, billing, and mitigation behavior.","url":"https://developers.cloudflare.com/ddos-protection/frequently-asked-questions/","inLanguage":"en","image":"https://developers.cloudflare.com/ddos-protection/frequently-asked-questions/og.png?v=f027a4ab6d65b7fa","dateModified":"2026-04-15","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: Stay updated with Cloudflare's DDoS protection. Discover the latest rule updates, accuracy improvements, and threat landscape adaptations. title: Changelog image: https://developers.cloudflare.com/ddos-protection/change-log/og.png?v=dbf3a502a6a2ab77
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.
Docs