Turning DDoS Geography Against Attackers

Cloudflare has introduced Location-Aware DDoS Protection, a new feature designed to exploit the inherently distributed nature of Distributed Denial of Service (DDoS) attacks. The system is currently available in beta for Enterprise customers subscribed to the Advanced DDoS service.

Traditional DDoS protection treats traffic volume as the primary threat indicator. This new approach adds a geographic dimension: by learning an application's normal traffic distribution across countries and regions, the protection layer can identify and mitigate floods that arrive from locations where such volume would be unusual.

Introducing Location-Aware DDoS Protection

How the System Works

The system continuously evaluates incoming traffic against a baseline of the customer's observed traffic patterns. For instance, a German e-commerce site whose legitimate traffic predominantly originates from Germany and neighboring European countries would be protected against sudden surges from distant, unexpected geographies.

In addition to geographic analysis, Location-Aware DDoS Protection incorporates Cloudflare's Machine Learning models to flag traffic that is likely automated. This automated-traffic signal is used as a supplementary input to increase the accuracy of mitigation decisions, helping to distinguish between real user sessions and coordinated botnets.

Configuration and Management

The feature operates as a new HTTP DDoS Managed rule inside the existing ruleset. By default, it runs in observation mode, displaying traffic it considers suspicious based on the last seven days of P95 rates, bucketed by client country and region. These baselines are recalculated every 24 hours.

Admins can view flagged traffic in the Security Overview dashboard within the Cloudflare dashboard. When ready to enforce protection, customers can change the rule's action to Managed Challenge or Block. A sensitivity control is also available, letting customers define how much tolerance is permitted for traffic that deviates from learned geography patterns. Lowering the sensitivity increases the tolerance for unusual traffic.

Screenshot of Cloudflare’s Security Overview analytics dashboard showing the traffic that was flagged by the Location-Aware DDoS Protection rule

Detailed implementation guidance, including how to view flagged traffic and configure the rule, is available in the developer documentation.

A Step Toward Smarter DDoS Defense

This release is part of a broader initiative to make DDoS protection more intelligent and tailored to individual traffic profiles. Location-aware mitigation is described as the first step toward a more sophisticated protection system that leverages historical and behavioral data to reduce the impact of attacks.

A diagram of a DDoS attack denying service to legitimate users