{"id":13331,"date":"2021-01-05T13:21:44","date_gmt":"2021-01-05T10:21:44","guid":{"rendered":"https:\/\/www.hyyat.com\/docs\/what-is-a-slowloris-ddos-attack\/"},"modified":"2026-10-21T20:02:32","modified_gmt":"2026-10-21T17:02:32","password":"","slug":"what-is-a-slowloris-ddos-attack","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/what-is-a-slowloris-ddos-attack\/","title":{"rendered":"What Is a Slowloris DDoS Attack and How to Protect Your Server"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b>Slowloris is a \u201cslow\u201d denial of service attack: instead of flooding the server with traffic, the attacker opens hundreds of connections and keeps them alive by sending the request a tiny piece every few seconds, until the server runs out of connections and real visitors cannot get in. Defences: per-address connection limits, a short request timeout, a web server that does not tie up a process per connection, and cloud protection.<\/div>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/10\/hkb-slowloris.webp\" alt=\"Slowloris attack: many slow connections held open towards a server\" width=\"1200\" height=\"630\" loading=\"lazy\" \/><\/figure>\n<h2>How does the attack work?<\/h2>\n<p>When someone visits your site, their browser sends a complete HTTP request in a fraction of a second. In Slowloris the attacker sends only the start of the request, then one small extra line every 10 or 15 seconds, so the request never completes. The server assumes a slow visitor and keeps the connection open, waiting.<\/p>\n<ol class=\"hkb-steps\">\n<li><b>The attacker opens hundreds of connections:<\/b> Sometimes from a single machine, with very little bandwidth.<\/li>\n<li><b>Keeps them alive slowly:<\/b> Each connection sends a small piece just before the server\u2019s timeout.<\/li>\n<li><b>The server runs out of connections:<\/b> Web servers that reserve a process per connection hit their limit.<\/li>\n<li><b>Real visitors are turned away:<\/b> The site looks down while CPU and bandwidth stay almost idle.<\/li>\n<\/ol>\n<h2>Signs of the attack<\/h2>\n<ul class=\"hkb-list\">\n<li>The site does not respond, yet CPU and memory usage are not high.<\/li>\n<li>Many open connections from a small number of addresses.<\/li>\n<li>Web server logs show incomplete or timed-out requests.<\/li>\n<\/ul>\n<h2>How to protect your server<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Per-address connection limit<\/td>\n<td>The firewall (such as CSF) stops one address from opening many connections at the same time.<\/td>\n<\/tr>\n<tr>\n<td>Short request timeout<\/td>\n<td>In Apache, mod_reqtimeout sets the maximum time for a full request to arrive, closing slow connections.<\/td>\n<\/tr>\n<tr>\n<td>Event-based web server<\/td>\n<td>LiteSpeed and Nginx do not reserve a full process per connection, so they withstand this attack much better.<\/td>\n<\/tr>\n<tr>\n<td>Cloud protection in front<\/td>\n<td>Cloudflare accepts connections instead of your server and passes only complete requests. Read <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cloudflare-under-attack-mode\/\">Under Attack mode<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"hkb-hh\">\n<h2>How Hyyat Host protects your site<\/h2>\n<ul>\n<li>WordPress hosting servers run <strong>LiteSpeed<\/strong>, and the <strong>CSF<\/strong> firewall limits connections per address.<\/li>\n<li><strong>Imunify360<\/strong> watches for suspicious requests and blocks their sources.<\/li>\n<li>You can connect your site to <strong>Cloudflare<\/strong> for an extra layer of protection.<\/li>\n<\/ul>\n<p style=\"margin:10px 0 0\">For private servers, we configure these protections as part of our <a href=\"https:\/\/www.hyyat.com\/en\/server-management\/\">server management service<\/a>. Learn more about <a href=\"https:\/\/www.hyyat.com\/en\/dos-detection\/\">Hyyat Host DoS protection<\/a>.<\/p>\n<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>How is Slowloris different from a regular DDoS attack?<\/summary>\n<p>A regular DDoS floods the server with huge volumes of traffic or requests. Slowloris uses few, very slow connections, so it is hard to spot from usage alone.<\/p>\n<\/details>\n<details>\n<summary>Is a site on shared hosting affected?<\/summary>\n<p>Protection is the server\u2019s job, and it is configured on our servers, so you need no setup in your site.<\/p>\n<\/details>\n<details>\n<summary>Is Cloudflare enough on its own?<\/summary>\n<p>It protects your site as long as visitors pass through it. If your server\u2019s real IP is known, attackers can bypass it, so server protection is still needed.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/wordpress-load-scripts-vulnerability\/\">The WordPress load-scripts.php Vulnerability (CVE-2018-6389) and How to Protect Your Site<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/brute-force-protection\/\">Brute Force Protection: What It Is and How Hyyat Host Protects Your Site<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/protect-website-from-hacking\/\">How to Keep Your Website Secure: Practical Tips to Prevent Hacking<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/what-is-an-ssl-certificate\/\">What Is an SSL Certificate and How Does It Work?<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/\">All website security guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortSlowloris is a \u201cslow\u201d denial of service attack: instead of flooding the server with traffic, the attacker opens hundreds of connections and keeps them alive by sending the request a tiny piece every few seconds, until the server runs out of connections and real visitors cannot get in. Defences: per-address connection limits, a short [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"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":[2744],"doc_tag":[],"class_list":["post-13331","docs","type-docs","status-publish","hentry","doc_category-website-protection"],"year_month":"2026-11","word_count":522,"total_views":"421","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":"Website Security","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13331","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=13331"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13331\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=13331"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=13331"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=13331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}