Override examples (2)

Last updated Apr 15, 2026

Use cases

The following scenarios detail how you can make use of override rules as a solution to common Network DDoS Protection issues.

VPN traffic is blocked by a UDP rule

If you have VPN traffic concentrated to a single or a few single destination IP addresses and the traffic is being blocked by a UDP rule, you can create an override rule for the UDP rule to the destination IPs or ranges.

Note

The override only applies to the detection and not the fingerprint generated and used for mitigation. Refer to Important remarks for more information.

Attack traffic is flagged by the adaptive rule based on UDP and destination port

If you recognize that the traffic flagged by the adaptive rule based on UDP and destination port is an attack, you create an override rule to enable the adaptive rule in mitigation mode, setting the action to block the traffic.

Minimize the risk of false positives impacting production traffic

To avoid disruptions during initial deployment, you can create a Log only – Essentially Off ruleset override that allows all traffic while logging detection results. This lets you safely observe and analyze DDoS activity before enabling enforcement.

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. Go to the DDoS protection tab.
  3. On HTTP DDoS attack protection, select Create override.
  4. Set the Scope to Apply to all incoming requests.
  5. Under Ruleset configuration:
  6. Set the Ruleset action to Log.
  7. Set the Ruleset sensitivity to Essentially Off.
  8. Select Save.

Was this helpful?

YesNo

On this page

Override examples (2) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ddos-protection/managed-rulesets/network/network-overrides/override-examples/#page","headline":"Override examples","description":"Example override configurations for Network-layer DDoS Attack Protection rules.","url":"https://developers.cloudflare.com/ddos-protection/managed-rulesets/network/network-overrides/override-examples/","inLanguage":"en","image":"https://developers.cloudflare.com/ddos-protection/managed-rulesets/network/network-overrides/override-examples/og.png?v=5f2c7cd87900684d","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: Expression fields and operators for scoping Network-layer DDoS overrides. title: Override expressions image: https://developers.cloudflare.com/ddos-protection/managed-rulesets/network/network-overrides/override-expressions/og.png?v=11dfa757a4c9299e


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.