What to do when under attack

Last updated Apr 23, 2026

Enable "I'm Under Attack" mode (IAUM)

If you are under attack and have this feature enabled during the attack, visitors will receive an interstitial page for about five seconds while the traffic is analyzed to make sure it is a legitimate human visitor. The vast majority of Layer 7 attack scripts are defeated by IUAM and can be honed via Page Rules.

Refer to I'm Under Attack Mode ↗︎ for more information.

Change Access Control List (ACL)

An ACL refers to rules that are applied to port numbers or IP addresses that are available on a host permitting use of the service. When you only allow Cloudflare IPs, you eliminate threats attempting to attack your origin IP range.

Refer to Cloudflare IP Ranges ↗︎ for more information.

Change Origin IPs and update Cloudflare DNS records

If your origin is still being attacked, consider moving your Origin IPs and updating your Cloudflare DNS records.

Refer to Prevent DDoS attacks for detailed guidance.

Note

To learn about best practices for DDoS protection, review Proactive DDoS defense.

Was this helpful?

YesNo

On this page

What to do when under attack - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/learning-paths/surge-readiness/security/enable-iaum/#page","headline":"What to do when under attack","description":"Respond to active DDoS attacks.","url":"https://developers.cloudflare.com/learning-paths/surge-readiness/security/enable-iaum/","inLanguage":"en","image":"https://developers.cloudflare.com/learning-paths/surge-readiness/security/enable-iaum/og.png?v=fdc483cde57479f4","dateModified":"2026-04-23","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: Reduce server strain during traffic surges. title: Prepare for surges and mitigate DDoS attacks image: https://developers.cloudflare.com/learning-paths/surge-readiness/security/prepare-for-surges/og.png?v=74acaf422ce82363


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt
Use this file to discover all available pages before exploring further.