What is an application layer DDoS attack?
An application-layer DDoS attack is a malicious attempt to overwhelm web applications by exploiting Layer 7 of the OSI model. It targets specific application vulnerabilities to disrupt service availability.
Unlike network-layer attacks that flood infrastructure, application-layer incidents overwhelm specific application processes, consuming significant computing power. By mimicking legitimate user traffic and patterns, these attacks can maximize impact while requiring very little attacker bandwidth.
The most common vectors exploit inherent application vulnerabilities or weaknesses in application-level protocols like HTTP and HTTPS. Such attacks often abuse resource-intensive processes, such as database queries, authentication mechanisms, or search functionalities, creating unsustainable workloads that disrupt operations.
Application layer DDoS attack vs. DNS amplification
While both attacks aim to disrupt availability, they pressure different parts of the stack and require different controls. DNS amplification is a network-layer reflection/amplification attack; an application-layer DDoS attack sends requests that look more like normal application traffic but cause disproportionate work inside the application or its dependencies.
Dimension | Application-layer DDoS | DNS amplification / network-layer DDoS |
Primary layer | Layer 7 (HTTP/HTTPS, APIs, application workflows) | Primarily Layers 3–4, using UDP and DNS reflection |
Attack path | Direct requests to a web, API, login, search, or other application endpoint | Small spoofed DNS queries sent to open resolvers, which return larger responses to the victim |
Main resource under pressure | Application CPU, database capacity, authentication services, connection pools, and origin resources | Network bandwidth, routers, firewalls, load balancers, and packet-processing capacity |
Typical traffic signature | Fully formed HTTP/HTTPS requests that may resemble legitimate user behavior; often measured in requests per second | Unsolicited UDP responses, often measured in packets per second or bits per second |
Amplification mechanism | Application logic, expensive queries, repeated workflows, or protocol behavior makes each request costly to process | Misconfigured or open DNS resolvers multiply a spoofed request into a larger response |
Visibility needed | Endpoint, method, parameters, headers, client behavior, cache status, response codes, and origin impact | Source/destination IPs, ports, protocols, packet rates, bandwidth, and flow patterns |
Best-fit controls | Adaptive DDoS detection, WAF rules, bot management, rate limits, challenges, caching, and origin protection | Network/volumetric DDoS mitigation, upstream filtering, ACLs, routing controls, and capacity at the edge |
Key challenge | Blocking malicious traffic without blocking legitimate users whose requests look valid | Absorbing or filtering traffic before it exhausts the network path to the service |
Important note: The two categories can be combined. A campaign may use a network-layer flood to consume bandwidth while sending application-layer requests to exhaust specific endpoints. Defending an internet-facing service therefore requires coverage across Layers 3, 4, and 7.
How application layer DDoS attacks take place
Application layer DDoS attacks achieve disruption through precise, targeted exploits rather than brute force. Instead of flooding networks, these application-specific assaults create bottlenecks by overloading vulnerabilities at key weak points. Below is a detailed breakdown of how these attacks operate:
Floods connection endpoints: Attackers will bombard infrastructure connection points like proxies and load balancers. By flooding sockets and sessions with more requests than applications can handle, assaults consume all available connections, creating a denial-of-service effect for legitimate users.
Exploits authentication processes: Validation checks like
CAPTCHAs, multi factor authentication, or account lockouts are prime targets. Aggressors continuously submit login requests to overwhelm these mechanisms by triggering account restrictions or consuming all authentication server resources.
Manipulates API request complexity: APIs have built-in limits on call complexity to manage server load. DDoS application layer attacks abuse these limits by maximizing expensive requests. For example, they might call product recommendation APIs with excessive unmatched parameters.
Mimics legitimate traffic patterns: To avoid defenses, hackers mimic customer or user behavior by spacing requests appropriately and using valid credentials when possible. The traffic resembles genuine interactions, such as browsing, searching, or submitting forms. This attack makes malicious traffic blend in better than traditional volume-based attacks.
Targets specific application vulnerabilities: Perpetrators research and probe apps to uncover application-specific weaknesses suited for exploitation. For example, they might find that search queries with wildcard parameters consume excessive resources.
Consumes database resources:Databases often have significant processing requirements. Attacks employ expensive queries, search filtering, and database joins to create an overwhelming workload, causing delays and potentially disrupting the connection between the application and its data.
Disrupts session management: Web apps track user sessions to maintain state. The process is resource-intensive, as it often involves allocating memory and handling cookies. Hackers initiate thousands of fake sessions and rapid timeouts to exhaust server resources for tracking user state.
Application-layer DDoS attack examples
Application-layer attacks are defined by the work a request forces the target to perform, not simply by the number of packets or the size of the traffic. Common examples include:
HTTP floods
Attackers send large volumes of GET or POST requests to pages, forms, or dynamic endpoints. The requests may use rotating IP addresses, realistic headers, or varied URLs to blend into ordinary browsing. The goal is to consume connection capacity, web-server workers, CPU, or origin bandwidth. A request to a cacheable static asset is generally less expensive than a request that must execute application logic, query a database, or reach the origin.
API floods
Attackers repeatedly call API endpoints, often targeting high-value or computationally expensive operations. Examples include product, recommendation, inventory, reporting, or GraphQL queries with many parameters. Even when each request is syntactically valid, the aggregate workload can exhaust API workers, connection pools, database capacity, or downstream services. API-specific rate limits, authentication context, schema-aware rules, and per-operation cost controls are important because a single global request limit may not reflect the actual cost of each call.
Authentication floods
Authentication floods target login, token, password-reset, MFA, or account-recovery workflows. Each request may trigger password verification, identity-provider calls, risk checks, CAPTCHA or challenge generation, session creation, logging, or account-lockout logic. Controls should distinguish abusive automation from legitimate login bursts and avoid relying only on IP address, since attackers may distribute requests across residential proxies or compromised devices. Rate limits scoped to account, device, session, IP or network, and endpoint can be combined with carefully targeted challenges.
Resource-intensive searches
Attackers identify search or filter combinations that cause expensive database work, regular-expression evaluation, sorting, joins, or repeated cache misses. They then request those combinations at scale. Search pages, catalog filters, reporting tools, and other dynamic queries can be vulnerable even when the rest of the site remains responsive. Defenses include query-cost limits, input validation, pagination caps, caching safe results, protecting the origin, and applying more restrictive controls to expensive query patterns.
Fastly observed example
Incident: Fastly reported two coordinated application DDoS attacks against a single anonymized enterprise high-technology customer on June 6–7, 2025. The attacks reached a combined 250+ billion requests, peaked at approximately 1.6 million and 1.7 million requests per second, and lasted almost 24 hours in total. Fastly reported that its DDoS Protection detected the first attack within seconds using multiple traffic attributes, including hostname and TLS details, and adapted as the attack changed. The customer reportedly experienced no downtime or latency impact.
Source and observation period: Fastly, “DDoS in June”, published July 23, 2025. The report describes Fastly DDoS Protection telemetry and anonymized customer activity observed during June 2025, with the detailed incident occurring June 6–7.
*Limitations: This is a vendor-reported, anonymized case study, not an independently audited incident report. It reflects traffic visible to Fastly’s network and DDoS Protection service, so it should not be treated as a representative rate for all organizations. The public account does not disclose the customer, endpoint mix, request payloads, or application architecture, so it demonstrates scale and mitigation behavior rather than proving that every request used the same application-layer technique.
9 ways to defend against application layer DDoS attacks
With application layer attacks becoming increasingly sophisticated, you need a multi-faceted defense strategy. This involves using proactive measures to harden infrastructure and reactive techniques to detect and mitigate ongoing attacks. Let's explore some key mechanisms for protecting against these assaults:
1. Implement JavaScript challenge mechanisms
Adding JavaScript challenges can effectively distinguish bots from legitimate users. These prompts analyze visitor behavior for automation indicators. If automation is detected, additional verification tests will be activated to confirm legitimacy before granting further access. Test these systems rigorously to avoid hindering legitimate customers.
2. Deploy advanced Next-Gen WAFs (Web Application Firewalls)
Next-Gen WAFs use application-specific rulesets to identify and block malicious traffic. Properly tuned WAFs can flag abnormalities in request complexity, geolocation, session management, input sizes, and more. Consider using cloud-based Next-Gen WAFs to leverage shared threat intelligence for faster attack detection.
3. Use IP reputation filtering
IP reputation databases maintain up-to-date botnet and malware IP lists. Web applications can automatically block traffic from known malicious sources by referencing these databases. Ensure the database remains updated frequently as botnet IP addresses change rapidly.
4. Implement rate limiting at the application level
Rate limiting enforces thresholds for traffic volumes and request complexity while blocking offenders. For example, you can set limits on API calls per IP, concurrent sessions per user, or database reads per minute. Granular limits help resist sudden spikes while preserving legitimate access.
5. Create intelligent CAPTCHA verification
Standard CAPTCHAs are limited in their bot detection capabilities. Intelligent CAPTCHAs powered by machine learning can more accurately identify automated tools by analyzing mouse movements, input patterns, and more. As attackers regularly shift tactics, you should continuously train your CAPTCHA system using the latest data on bot behaviors.
6. Configure browser integrity checks
Examine incoming traffic for consistent browser fingerprinting. Requests lacking legitimate browser characteristics can be selected for additional verification or blocked completely. Browser integrity checks help ensure traffic originates from authentic sources.
7. Use machine learning traffic analysis
Machine learning techniques create precise models of normal versus abnormal traffic patterns. Continuously training these systems on updated data improves detection accuracy. Frequent retraining ensures the models adapt to evolving traffic trends.
8. Implement token-based request verification
Tokenized keys with strict expiration timeframes validate that each API call originates from your legitimate frontend. Attacks attempting to bypass the front end are blocked as they lack valid tokens. Tokens should match session details to prevent replay attacks and unauthorized requests.
9. Use adaptive traffic segmentation
Segmenting traffic by risk profile lets you isolate suspicious flows for further analysis while preserving application resources for legitimate users. Update risk models frequently to ensure accuracy and reflect the latest threat intelligence.
Protect your business with Fastly DDoS protection
As attackers increasingly exploit vulnerabilities in Layer 7 business logic, you must employ an array of adaptive defense strategies. No single solution provides comprehensive protection, but combining proactive and reactive mitigation techniques at the edge can effectively counter application attacks before they overwhelm infrastructure. Intelligent capabilities like machine learning and behavior analysis are beneficial for keeping up with the growing sophistication of malicious botnets and stressor services.
Fastly's DDoS Protection services provide a powerful yet flexible approach for shielding your web properties and APIs. Backed by a global edge network, the solution offers deep visibility into traffic combined with rapid threat detection and mitigation capabilities.
Here's how the platform helps your business stay ahead of these threats:
Automatic mitigation of attacks: Fastly uses proactive techniques to automatically identify and neutralize DDoS attacks without requiring manual intervention. Threats are addressed immediately, minimizing disruption.
Improved resilience: With Fastly’s solution, applications, and APIs maintain consistent performance and availability, even during high-volume attacks. This resilience ensures a swift customer experience for legitimate traffic.
Dynamic detection and adaptive identification: Fastly continuously monitors incoming traffic, using advanced analytics to detect anomalous attack patterns instantaneously. Adaptive identification ensures the solution stays effective against evolving threats.
Zero attack fees: Fastly doesn't charge for attack traffic, unlike many providers. You only pay for legitimate requests, keeping operational costs predictable and reducing financial strain during prolonged attacks.
Integrated next-gen WAF: Fastly's next-gen WAF complements DDoS protection by identifying and blocking malicious web requests.
Near instant mitigation: The platform reduces the impact of attacks on end users by mitigating threats in seconds.
Versatile deployment: Fastly protects applications of all sizes with fast, upgradable defenses.
Learn how Fastly can protect your applications, APIs, and microservices, ensuring your business stays secure and resilient to developing threats.





