{"id":45,"date":"2026-03-25T19:05:43","date_gmt":"2026-03-25T22:05:43","guid":{"rendered":"https:\/\/miraiguard.com\/learn\/?p=45"},"modified":"2026-03-25T19:16:42","modified_gmt":"2026-03-25T22:16:42","slug":"como-se-proteger-de-ataques-ddos-l7-application-layer","status":"publish","type":"post","link":"https:\/\/miraiguard.com\/learn\/pt\/como-se-proteger-de-ataques-ddos-l7-application-layer\/","title":{"rendered":"Como se proteger de ataques DDoS L7 (Application Layer)"},"content":{"rendered":"<p data-start=\"210\" data-end=\"357\">Se voc\u00ea roda qualquer tipo de servi\u00e7o exposto na internet \u2014 API, site, painel, servidor de jogo \u2014 voc\u00ea j\u00e1 est\u00e1 na mira de ataques de camada 7 (L7).<\/p>\n<p data-start=\"359\" data-end=\"452\">E diferente dos ataques volum\u00e9tricos (L3\/L4), aqui o problema n\u00e3o \u00e9 s\u00f3 banda\u2026 \u00e9 intelig\u00eancia.<\/p>\n<p data-start=\"454\" data-end=\"489\">O atacante simula tr\u00e1fego leg\u00edtimo:<\/p>\n<ul data-start=\"490\" data-end=\"629\">\n<li data-section-id=\"113qct4\" data-start=\"490\" data-end=\"515\">Requests HTTP v\u00e1lidos<\/li>\n<li data-section-id=\"euoge2\" data-start=\"516\" data-end=\"544\">Uso de User-Agents reais<\/li>\n<li data-section-id=\"12g24g7\" data-start=\"545\" data-end=\"583\">Rota\u00e7\u00e3o de IPs (proxy\/residencial)<\/li>\n<li data-section-id=\"1csf80s\" data-start=\"584\" data-end=\"629\">Comportamento parecido com usu\u00e1rio humano<\/li>\n<\/ul>\n<p data-start=\"631\" data-end=\"689\">Ou seja: seu servidor acha que \u00e9 tr\u00e1fego normal\u2026 at\u00e9 cair.<\/p>\n<h3 data-section-id=\"vhmh3f\" data-start=\"691\" data-end=\"719\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/1f50d.svg\" alt=\"\ud83d\udd0d\" \/>\u00a0Onde muita gente erra<\/h3>\n<p data-start=\"721\" data-end=\"759\">A maioria ainda tenta resolver L7 com:<\/p>\n<ul data-start=\"760\" data-end=\"822\">\n<li data-section-id=\"16n07n\" data-start=\"760\" data-end=\"779\">Firewall b\u00e1sico<\/li>\n<li data-section-id=\"cufhz6\" data-start=\"780\" data-end=\"802\">Rate limit simples<\/li>\n<li data-section-id=\"1n5pjei\" data-start=\"803\" data-end=\"822\">Bloqueio por IP<\/li>\n<\/ul>\n<p data-start=\"824\" data-end=\"870\">Isso\u00a0<strong data-start=\"829\" data-end=\"845\">n\u00e3o funciona<\/strong>\u00a0contra botnets modernas.<\/p>\n<p data-start=\"872\" data-end=\"892\">Se o atacante tiver:<\/p>\n<ul data-start=\"893\" data-end=\"973\">\n<li data-section-id=\"1nqo9i3\" data-start=\"893\" data-end=\"917\">10k IPs distribu\u00eddos<\/li>\n<li data-section-id=\"ait023\" data-start=\"918\" data-end=\"951\">Requests lentos (slow attack)<\/li>\n<li data-section-id=\"1tx93ez\" data-start=\"952\" data-end=\"973\">Headers leg\u00edtimos<\/li>\n<\/ul>\n<p data-start=\"975\" data-end=\"1025\">Seu sistema vai aceitar tudo\u2026 e morrer por dentro.<\/p>\n<hr data-start=\"1027\" data-end=\"1030\" \/>\n<h2 data-section-id=\"102rttu\" data-start=\"1032\" data-end=\"1063\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/1f6e1.svg\" alt=\"\ud83d\udee1\ufe0f\" \/>\u00a0O que realmente funciona<\/h2>\n<h3 data-section-id=\"boecu1\" data-start=\"1065\" data-end=\"1100\"><span role=\"text\">1.\u00a0<strong data-start=\"1072\" data-end=\"1100\">Prote\u00e7\u00e3o na borda (Edge)<\/strong><\/span><\/h3>\n<p data-start=\"1101\" data-end=\"1153\">Nunca deixe o ataque chegar direto na sua aplica\u00e7\u00e3o.<\/p>\n<p data-start=\"1155\" data-end=\"1159\">Use:<\/p>\n<ul data-start=\"1160\" data-end=\"1242\">\n<li data-section-id=\"6o1r3e\" data-start=\"1160\" data-end=\"1189\">Reverse proxy inteligente<\/li>\n<li data-section-id=\"aulslk\" data-start=\"1190\" data-end=\"1213\">CDN com WAF decente<\/li>\n<li data-section-id=\"pz1mwj\" data-start=\"1214\" data-end=\"1242\">Filtros antes do backend<\/li>\n<\/ul>\n<hr data-start=\"1244\" data-end=\"1247\" \/>\n<h3 data-section-id=\"wxx9hr\" data-start=\"1249\" data-end=\"1296\"><span role=\"text\">2.\u00a0<strong data-start=\"1256\" data-end=\"1296\">WAF com comportamento (n\u00e3o s\u00f3 regra)<\/strong><\/span><\/h3>\n<p data-start=\"1297\" data-end=\"1326\">WAF moderno precisa analisar:<\/p>\n<ul data-start=\"1327\" data-end=\"1429\">\n<li data-section-id=\"7l71et\" data-start=\"1327\" data-end=\"1352\">Frequ\u00eancia por sess\u00e3o<\/li>\n<li data-section-id=\"c7u7mk\" data-start=\"1353\" data-end=\"1377\">Padr\u00f5es de navega\u00e7\u00e3o<\/li>\n<li data-section-id=\"u6hlq9\" data-start=\"1378\" data-end=\"1402\">Tempo entre requests<\/li>\n<li data-section-id=\"hmv3vx\" data-start=\"1403\" data-end=\"1429\">Repeti\u00e7\u00e3o de endpoints<\/li>\n<\/ul>\n<p data-start=\"1431\" data-end=\"1458\">N\u00e3o \u00e9 s\u00f3 bloquear \u201c\/login\u201d.<\/p>\n<hr data-start=\"1460\" data-end=\"1463\" \/>\n<h3 data-section-id=\"qf9wzd\" data-start=\"1465\" data-end=\"1496\"><span role=\"text\">3.\u00a0<strong data-start=\"1472\" data-end=\"1496\">Challenge (desafios)<\/strong><\/span><\/h3>\n<p data-start=\"1497\" data-end=\"1514\">Bots odeiam isso:<\/p>\n<ul data-start=\"1516\" data-end=\"1578\">\n<li data-section-id=\"14b28nm\" data-start=\"1516\" data-end=\"1532\">JS Challenge<\/li>\n<li data-section-id=\"flu1sx\" data-start=\"1533\" data-end=\"1555\">CAPTCHA adaptativo<\/li>\n<li data-section-id=\"7jn38e\" data-start=\"1556\" data-end=\"1578\">Proof of work leve<\/li>\n<\/ul>\n<p data-start=\"1580\" data-end=\"1610\">Usu\u00e1rio real passa. Bot sofre.<\/p>\n<hr data-start=\"1612\" data-end=\"1615\" \/>\n<h3 data-section-id=\"xwuqxx\" data-start=\"1617\" data-end=\"1653\"><span role=\"text\">4.\u00a0<strong data-start=\"1624\" data-end=\"1653\">Rate limiting inteligente<\/strong><\/span><\/h3>\n<p data-start=\"1654\" data-end=\"1679\">Esquece \u201c100 req por IP\u201d.<\/p>\n<p data-start=\"1681\" data-end=\"1685\">Use:<\/p>\n<ul data-start=\"1686\" data-end=\"1757\">\n<li data-section-id=\"axf2mu\" data-start=\"1686\" data-end=\"1714\">Rate por cookie \/ sess\u00e3o<\/li>\n<li data-section-id=\"jkoelj\" data-start=\"1715\" data-end=\"1739\">Rate por fingerprint<\/li>\n<li data-section-id=\"11wwhrh\" data-start=\"1740\" data-end=\"1757\">Burst control<\/li>\n<\/ul>\n<hr data-start=\"1759\" data-end=\"1762\" \/>\n<h3 data-section-id=\"1as5osw\" data-start=\"1764\" data-end=\"1790\"><span role=\"text\">5.\u00a0<strong data-start=\"1771\" data-end=\"1790\">Cache agressivo<\/strong><\/span><\/h3>\n<p data-start=\"1791\" data-end=\"1851\">Se sua aplica\u00e7\u00e3o responde tudo direto do backend\u2026 j\u00e1 perdeu.<\/p>\n<ul data-start=\"1853\" data-end=\"1925\">\n<li data-section-id=\"sgc8hy\" data-start=\"1853\" data-end=\"1873\">Cache de p\u00e1ginas<\/li>\n<li data-section-id=\"1qr49ld\" data-start=\"1874\" data-end=\"1908\">Cache de API (quando poss\u00edvel)<\/li>\n<li data-section-id=\"4j1ehu\" data-start=\"1909\" data-end=\"1925\">Edge caching<\/li>\n<\/ul>\n<p data-start=\"1927\" data-end=\"1968\">Menos processamento = mais sobreviv\u00eancia.<\/p>\n<hr data-start=\"1970\" data-end=\"1973\" \/>\n<h3 data-section-id=\"187tbe8\" data-start=\"1975\" data-end=\"2014\"><span role=\"text\">6.\u00a0<strong data-start=\"1982\" data-end=\"2014\">Prote\u00e7\u00e3o contra slow attacks<\/strong><\/span><\/h3>\n<p data-start=\"2015\" data-end=\"2030\">Muito ignorado.<\/p>\n<p data-start=\"2032\" data-end=\"2045\">Ataques tipo:<\/p>\n<ul data-start=\"2046\" data-end=\"2080\">\n<li data-section-id=\"fsz3gk\" data-start=\"2046\" data-end=\"2059\">Slowloris<\/li>\n<li data-section-id=\"jhyfvm\" data-start=\"2060\" data-end=\"2080\">HTTP flood lento<\/li>\n<\/ul>\n<p data-start=\"2082\" data-end=\"2094\">Mitigue com:<\/p>\n<ul data-start=\"2095\" data-end=\"2165\">\n<li data-section-id=\"6d2y0i\" data-start=\"2095\" data-end=\"2116\">Timeout agressivo<\/li>\n<li data-section-id=\"1g8g6gn\" data-start=\"2117\" data-end=\"2147\">Limite de conex\u00f5es abertas<\/li>\n<li data-section-id=\"pu8mfb\" data-start=\"2148\" data-end=\"2165\">Buffer tuning<\/li>\n<\/ul>\n<hr data-start=\"2167\" data-end=\"2170\" \/>\n<h2 data-section-id=\"1wkmot\" data-start=\"2172\" data-end=\"2187\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/26a0.svg\" alt=\"\u26a0\ufe0f\" \/>\u00a0Realidade<\/h2>\n<p data-start=\"2189\" data-end=\"2255\">Se algu\u00e9m quiser derrubar voc\u00ea de verdade, com botnet bem montada\u2026<\/p>\n<p data-start=\"2257\" data-end=\"2294\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/1f449.svg\" alt=\"\ud83d\udc49\" \/>\u00a0S\u00f3 configura\u00e7\u00e3o b\u00e1sica n\u00e3o segura.<\/p>\n<p data-start=\"2296\" data-end=\"2312\">Voc\u00ea precisa de:<\/p>\n<ul data-start=\"2313\" data-end=\"2380\">\n<li data-section-id=\"4ksa4a\" data-start=\"2313\" data-end=\"2332\">Infra preparada<\/li>\n<li data-section-id=\"1midi47\" data-start=\"2333\" data-end=\"2352\">Mitiga\u00e7\u00e3o ativa<\/li>\n<li data-section-id=\"mqseqm\" data-start=\"2353\" data-end=\"2380\">Intelig\u00eancia de tr\u00e1fego<\/li>\n<\/ul>\n<h2 data-section-id=\"m66c86\" data-start=\"2224\" data-end=\"2272\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/1f198.svg\" alt=\"\ud83c\udd98\" \/>\u00a0Precisa de ajuda com DDoS no seu servidor?<\/h2>\n<p data-start=\"2274\" data-end=\"2331\">Se voc\u00ea j\u00e1 est\u00e1 sendo atacado ou quer se prevenir melhor:<\/p>\n<p data-start=\"2333\" data-end=\"2429\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/1f449.svg\" alt=\"\ud83d\udc49\" \/>\u00a0Crie uma conta:\u00a0<a class=\"decorated-link\" href=\"https:\/\/miraiguard.com\/app\/register\" target=\"_new\" rel=\"noopener\" data-start=\"2352\" data-end=\"2387\">https:\/\/miraiguard.com\/app\/register<\/a><br data-start=\"2387\" data-end=\"2390\" \/><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/17.0.2\/svg\/1f449.svg\" alt=\"\ud83d\udc49\" \/>\u00a0Abra um ticket explicando seu caso<\/p>\n<p data-start=\"2431\" data-end=\"2539\">A equipe da Mirai Guard pode analisar sua situa\u00e7\u00e3o e indicar a melhor forma de prote\u00e7\u00e3o para o seu servidor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se voc\u00ea roda qualquer tipo de servi\u00e7o exposto na internet \u2014 API, site, painel, servidor de jogo \u2014 voc\u00ea j\u00e1 est\u00e1 na mira de ataques de camada 7 (L7). E diferente dos ataques volum\u00e9tricos (L3\/L4), aqui o problema n\u00e3o \u00e9 s\u00f3 banda\u2026 \u00e9 intelig\u00eancia. O atacante simula tr\u00e1fego leg\u00edtimo: Requests HTTP v\u00e1lidos Uso de User-Agents [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,45],"tags":[24,34],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-protecao-ddos","category-seguranca-cibernetica","tag-ddos","tag-l7"],"views":10,"_links":{"self":[{"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":2,"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/posts\/45\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miraiguard.com\/learn\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}