{"id":18402,"date":"2026-09-29T23:17:36","date_gmt":"2026-09-29T20:17:36","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/cloudflare-under-attack-mode\/"},"modified":"2026-11-22T21:25:00","modified_gmt":"2026-11-22T18:25:00","password":"","slug":"cloudflare-under-attack-mode","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/cloudflare-under-attack-mode\/","title":{"rendered":"Cloudflare \u201cI\u2019m Under Attack\u201d Mode: When to Turn It On, Where to Find It, What Visitors See, and When to Turn It Off"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b><b>I\u2019m Under Attack<\/b> mode makes Cloudflare show every visitor a short check page before entering, which stops most automated traffic. Find it in your domain\u2019s Cloudflare dashboard: under <b>Overview<\/b> (quick actions) or <b>Security \u203a Settings<\/b>, depending on the dashboard layout. Use it only during an attack, then turn it off.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18402-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-cfattack-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-cfattack-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-cfattack-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-cfattack-en.mp4<\/a><\/video><\/div><\/div>\n<p>When your site is flooded with automated requests, the server slows or stops and visitors see errors such as 508 or 522. This mode puts a barrier in front of the site: every visitor passes a browser check first, and simple bots cannot get through.<\/p>\n<h2>When to turn it on<\/h2>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-w2-t-cfns.webp\" alt=\"Checking the domain goes through Cloudflare with dig\" width=\"1100\" height=\"620\" loading=\"lazy\" \/><\/figure>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Situation<\/th>\n<th>Turn on Under Attack?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A sudden, huge traffic spike with slowness or downtime, and the visits are not real<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>An ad campaign brought real visitors<\/td>\n<td>No, that is normal load<\/td>\n<\/tr>\n<tr>\n<td>Repeated login attempts on wp-login only<\/td>\n<td>Usually not: a rule for the login page alone fits better<\/td>\n<\/tr>\n<tr>\n<td>The site is always slow<\/td>\n<td>No, the cause is on the site: <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/why-is-my-website-slow\/\">why is my site slow?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Turning it on<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Log in to Cloudflare<\/b> at <code>dash.cloudflare.com<\/code> and pick your domain.<\/li>\n<li><b>Find Under Attack Mode<\/b> in <b>Overview<\/b> under quick actions, or in <b>Security \u203a Settings<\/b>.<\/li>\n<li><b>Turn it on<\/b> it takes effect within seconds.<\/li>\n<li><b>Watch<\/b> the security log in <b>Security \u203a Events<\/b> and whether the site recovers.<\/li>\n<\/ol>\n<div class=\"hkb-note\">This mode only works if the domain really goes through Cloudflare: Cloudflare nameservers and the orange cloud on the site\u2019s record. If your site is not on Cloudflare yet: <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/activate-cloudflare-from-cpanel\/\">signing up for Cloudflare<\/a>.<\/div>\n<h2>What visitors see<\/h2>\n<p>A short page saying the browser is being checked, then an automatic redirect to the site within seconds. Real visitors usually pass without clicking anything, though some may get an extra check.<\/p>\n<h2>Side effects<\/h2>\n<ul class=\"hkb-list\">\n<li>Monitoring tools and services that call your site automatically, such as payment gateways sending notifications, may be blocked.<\/li>\n<li>Mobile apps that talk to your site through an API may break.<\/li>\n<li>The first visit feels slightly slower.<\/li>\n<\/ul>\n<p>So do not leave it on permanently. Once the attack ends, turn it off and rely on targeted security rules instead of a blanket barrier.<\/p>\n<div class=\"hkb-note\"><b>From our support desk:<\/b> If only the login page is under attack, a challenge rule for <code>\/wp-login.php<\/code> alone is better than putting the whole site behind a check. Add a security plugin too, as in <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/best-wordpress-security-plugins\/\">security plugins<\/a>.<\/div>\n<div class=\"hkb-note\">Running WordPress? See <a href=\"https:\/\/www.hyyat.com\/en\/wordpress-hosting\/\">Hyyat Host WordPress hosting<\/a>.<\/div>\n<h2>Questions we get<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Is Under Attack mode free?<\/summary>\n<p>Yes, it is available on the free plan.<\/p>\n<\/details>\n<details>\n<summary>I turned it on and nothing changed<\/summary>\n<p>Make sure the cloud next to the site\u2019s record is orange and the nameservers are Cloudflare\u2019s.<\/p>\n<\/details>\n<details>\n<summary>Does it affect Google?<\/summary>\n<p>Cloudflare normally lets known search engine crawlers through. Still, do not leave it on longer than needed.<\/p>\n<\/details>\n<details>\n<summary>The attack continues despite the mode<\/summary>\n<p>If the attack hits the server address directly, bypassing Cloudflare, send us <a href=\"https:\/\/hyyatdomain.com\/submitticket.php\" target=\"_blank\" rel=\"noopener\">a support ticket<\/a>.<\/p>\n<\/details>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortI\u2019m Under Attack mode makes Cloudflare show every visitor a short check page before entering, which stops most automated traffic. Find it in your domain\u2019s Cloudflare dashboard: under Overview (quick actions) or Security \u203a Settings, depending on the dashboard layout. Use it only during an attack, then turn it off. When your site is [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":21608,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2746],"doc_tag":[],"class_list":["post-18402","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-cloudflare"],"year_month":"2026-11","word_count":485,"total_views":"6","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Cloudflare","term_url":"https:\/\/www.hyyat.com\/en\/kb\/cloudflare\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18402"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18402\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/21608"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18402"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18402"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}