Skip to content
Cloudflare Docs

Security Level

In the 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 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 select I'm Under Attack!, which enables Under Attack mode, Cloudflare will present a JS challenge page.

Threat score

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