Using Cloudflare Under Attack mode during a web attack

Under Attack mode adds a browser challenge before eligible requests reach the site. It can help during an active web attack, but it can also interrupt API clients, integrations and legitimate visitors, so apply it with a clear incident scope and exit plan.

What you need before you begin

Confirm traffic is proxied through Cloudflare and collect evidence from security events and origin load. Keep an authorised administrator session and a communication channel available. Identify essential webhooks, APIs and checkout workflows before applying broad challenges.

01 Use Cloudflare Under Attack mode during a web attack

  1. Open the zone’s Overview and use the Under Attack Mode quick action where available, or the current equivalent security control.
  2. If the incident is limited to certain paths, consider a supported configuration rule that applies the setting only to those requests.
  3. Monitor security events, origin health and legitimate user access after enabling it. Check a normal browser session and essential nonbrowser integrations separately.
  4. Investigate the underlying attack pattern and apply durable, appropriately scoped security controls where needed.
  5. Disable the temporary mode once the incident has subsided and verify normal access again. Record the timing and effect for future response.

Confirm the expected result

Origin pressure should improve without unacceptable disruption to necessary users and services. A challenge page appearing does not by itself prove the attack is contained.

What if Under Attack mode blocks APIs or payment callbacks?

If APIs or payment callbacks fail, avoid asking them to solve a browser challenge. Refine the scope using supported rules and trusted authentication, rather than broadly allowing all requests. Under Attack mode does not replace origin patching, application security or provider assistance for nonweb attacks.

Sources and further reading

  • 0 Users Found This Useful
  • performance, security-ssl
Was this answer helpful?

Related Articles

Using Cloudflare’s current security controls instead of old security levels

Older Cloudflare guides refer to selectable Low, Medium or High security levels. Current...

Adjusting Cloudflare Challenge Passage

Challenge Passage controls how long a visitor who successfully completes an eligible Cloudflare...

Creating a limited Cloudflare API token for DNS automation

A scoped Cloudflare API token lets an integration manage only its required resources. For DNS...

Choosing Cloudflare bot controls that fit the site and plan

Cloudflare’s bot products differ in available controls and exception support. Choose settings...

Planning origin access restrictions behind Cloudflare

Origin access restrictions can prevent ordinary visitors from bypassing Cloudflare and reaching...