[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/waf/tools/security-level/ [Back]  [Original]

Security Level Cloudflare Web Application Firewall (WAF) docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /WAF
  3. /Additional tools
  4. /Security Level

Security Level

Last updated Apr 16, 2026Copy as MarkdownView as MarkdownAgent setup
OverviewThreat score

In the old Cloudflare dashboard, security level has the value Always protected and you cannot change this setting. To turn Under Attack mode on or off, use the separate toggle.

In the new security dashboard, the Cloudflare API, and in Terraform, use security level to turn Under Attack mode on or off.

Cloudflare's Under Attack mode performs additional security checks to help mitigate layer 7 DDoS attacks. When you enable Under Attack mode, Cloudflare will present a Managed Challenge page.

Caution

Only use Under Attack mode when a website is under a DDoS attack. Under Attack mode may affect some actions on your domain, such as your API traffic.

To enable or disable Under Attack mode for your API or any other part of your domain, create a configuration rule.

Threat score

Previously, a threat score represented a Cloudflare threat score from 0100, where 0 indicates low risk. Now, the threat score is always 0 (zero).

Recommendation

Currently we do not recommend creating rules based on the threat score, since this score is no longer being populated.

PreviousReplace insecure JS librariesNextValidation checks

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page