Fastly エッジクラウドプラットフォーム

革新的なデジタルソリューション

What Is Application-Layer DDoS Protection?

Application-layer DDoS protection is a set of security measures designed to detect and mitigate distributed denial-of-service (DDoS) attacks targeting websites, APIs, and other application services at Layer 7 of the OSI model.

Unlike attacks that primarily attempt to overwhelm network bandwidth, application-layer DDoS attacks target the functions an application needs to serve legitimate users. Attackers may flood login pages, search functions, APIs, checkout processes, or other resource-intensive endpoints with requests that can resemble normal traffic.

Effective protection therefore requires more than simply absorbing large amounts of bandwidth. Organizations need to distinguish legitimate users from malicious traffic, detect abnormal behavior, control abusive requests, and prevent attacks from exhausting application and origin resources.

How does an application-layer DDoS attack work?

An application-layer DDoS attack is a distributed attack that attempts to make an application unavailable by overwhelming its application-level resources. Instead of sending only massive quantities of raw network traffic, attackers can generate requests that require the target application to perform meaningful work. Examples include repeatedly requesting web pages, querying APIs, initiating searches, attempting logins, or triggering computationally expensive operations.

A relatively small request can sometimes cause considerably more work downstream. It might trigger application logic, database queries, API calls, or other backend processes.That asymmetry can make application-layer attacks particularly disruptive.

Attackers typically generate requests from many distributed clients, which may include compromised devices forming a botnet. The traffic is directed at application endpoints with the goal of consuming finite resources like:

  • Application-server capacity

  • Database connections

  • CPU and memory

  • API capacity

  • Connection pools

  • Backend bandwidth

  • Third-party services

  • Origin infrastructure

A simple example is an HTTP flood; An attacker sends large quantities of HTTP requests to a website or API until legitimate requests can no longer be processed efficiently. More sophisticated attacks may deliberately target expensive endpoints. For example, an attacker could repeatedly trigger a search operation that requires multiple database queries rather than requesting a lightweight static file.

How are application-layer DDoS attacks different from network-layer attacks?

The primary difference is what the attacker attempts to exhaust. Network and transport-layer attacks generally target infrastructure like bandwidth, protocols, or connection capacity. Application-layer attacks target the application itself and the resources required to process legitimate-looking requests.

Characteristic

Network/transport-layer DDoS

Application-layer DDoS

Common OSI layers

Layers 3–4

Layer 7

Primary target

Network and transport infrastructure

Websites, APIs and application functions

Example

UDP flood, SYN flood

HTTP request flood

Typical objective

Exhaust bandwidth or connection resources

Exhaust application or backend resources

Traffic characteristics

Often high-volume

Can resemble legitimate application traffic

Key defenses

Network DDoS mitigation, filtering, traffic absorption

Behavioral detection, WAF, rate limiting, bot management, application-aware mitigation

Organizations may encounter both types simultaneously, so a comprehensive DDoS strategy should account for attacks across multiple layers.

Why is application-layer DDoS protection necessary?

Application-layer attacks present a particular challenge because malicious requests can look legitimate. A request for “/search”, “/login”, or “/api/products”, for example, isn't inherently malicious. Determining whether thousands of such requests represent real customer activity or a coordinated attack requires context.

The following are reasons a dedicated application-layer DDoS protection solution and strategy are so important: 

Application attacks can bypass basic network defenses

A traditional network firewall may see valid HTTPS connections rather than obviously malformed network traffic. Application-aware controls are needed to understand what those connections are doing.

Small requests can consume significant backend resources

Attackers can deliberately target endpoints that are expensive to process. A request might trigger database lookups, authentication operations, API calls, or computationally intensive application logic.

Botnets distribute attack traffic

Botnets can spread requests across large numbers of IP addresses and devices. This can make simple IP blocking and per-IP thresholds less effective.

Attacks can affect revenue and customer experience

If customers can't access a checkout page, API, streaming service, SaaS application, or other critical service, availability problems can quickly become business problems.

Attack traffic can increase infrastructure costs

Even when an attack doesn't cause an outage, processing malicious requests can consume cloud compute, database resources, bandwidth, and third-party API capacity. Application-layer protection aims to stop or control those requests before they consume expensive backend resources.

What are common types of application-layer DDoS attacks?

HTTP floods

HTTP floods generate large quantities of HTTP GET, POST, or other requests against a website or application. More sophisticated versions can vary URLs, headers, cookies, request patterns, and client characteristics to make the traffic harder to distinguish from legitimate activity.

API floods

Attackers can directly target API endpoints with large quantities of requests. This can be especially damaging when API operations trigger database queries, computations, or calls to downstream services.

Login and authentication floods

Authentication endpoints can be expensive because they may involve database operations, password hashing, identity-provider calls, fraud checks, or other processing. Attackers can repeatedly invoke these functions to consume resources.

Resource-exhaustion attacks

Rather than simply maximizing request volume, attackers can identify application functions that require disproportionate processing. Search, reporting, data export, complex filtering, file processing, or other expensive operations can become targets.

Low-and-slow attacks

Not every application-layer DDoS attack depends on extremely high request rates. Some attacks deliberately consume application or server resources slowly, potentially making them harder to identify using simple traffic-volume thresholds.

What are application-layer DDoS protection best practices?

Effective protection is layered. Organizations should combine application architecture, traffic controls, monitoring, and specialized security technologies.

1. Establish normal traffic baselines

Understanding normal request volumes and behaviors makes unusual activity easier to identify. Monitor traffic by endpoint, geography, response status, user agent, client characteristics, and other relevant dimensions.

2. Protect the origin

Attackers shouldn't be able to bypass edge security controls and attack the origin directly. Restrict origin access where possible so legitimate application traffic reaches backend infrastructure through approved delivery and security layers.

3. Cache appropriate content

Caching can reduce the amount of work performed by application origins. If a CDN can serve a request from cache, the request doesn't need to trigger the same backend processing. Increasing cache efficiency can therefore improve both performance and resilience.

4. Use intelligent rate limiting

Rate limits can prevent individual clients or groups of clients from making excessive requests. Avoid applying one universal threshold to every endpoint. A homepage, login API, search endpoint, and large file download can have very different normal traffic patterns.

5. Protect expensive endpoints

Identify which requests consume the most backend resources. Search, authentication, report generation, API queries, and other expensive operations may require stricter controls than inexpensive cached resources.

6. Use bot management

Botnets are frequently responsible for distributed application attacks. Bot-management systems can use behavioral and client signals to distinguish automated traffic from legitimate users and apply appropriate responses.

7. Deploy a web application firewall

A WAF can identify and block malicious application requests, complementing DDoS protection. This is particularly valuable when attacks combine request flooding with attempts to exploit application vulnerabilities.

8. Build application resilience

Application architecture still matters. Timeouts, circuit breakers, queueing, resource limits, caching, database protections, and graceful degradation can reduce the impact when unusual traffic reaches backend systems.

9. Monitor in real time

Application-layer attacks can evolve quickly. Real-time security and traffic visibility helps teams identify targeted endpoints, understand mitigation behavior, and adjust protections during an incident.

What types of application-layer DDoS protection are available?

No single control addresses every Layer 7 attack. Common protection technologies include:

CDN and edge caching

CDNs can serve cacheable requests without involving the origin, reducing the resources available for attackers to exhaust. Edge networks can also provide a location for identifying and mitigating malicious traffic before it reaches application infrastructure.

Web application firewalls

A WAF examines HTTP requests and applies security rules based on application-layer information. WAFs are primarily associated with protecting applications from vulnerabilities and malicious payloads, but they can also contribute to a layered DDoS defense.

Rate limiting

Rate limiting controls how frequently requests can be made. Rules can be applied to particular URLs, APIs, clients, or other request characteristics to protect sensitive or resource-intensive functions.

Bot management

Bot management attempts to distinguish legitimate humans and approved automation from malicious bots. Because many application-layer DDoS attacks originate from botnets, bot detection can be particularly valuable when attack requests otherwise appear valid.

Behavioral and anomaly detection

Behavioral protection looks for deviations from expected application traffic rather than relying exclusively on known attack signatures. This can help identify previously unseen attacks and traffic patterns that only become suspicious when examined collectively.

Client challenges

When appropriate, suspicious clients can be required to complete browser or computational challenges before being allowed to access protected resources. Challenges should be applied carefully because unnecessary friction can affect legitimate users and accessibility.

Network DDoS protection

Application-layer defenses shouldn't replace network-layer protection. Attackers may combine Layer 7 techniques with volumetric or protocol attacks, so organizations should consider protection across Layers 3, 4, and 7.

How can organizations detect an application-layer DDoS attack?

Organizations should keep an eye on known DDoS attack warning signs. These include: 

  • Sudden increases in HTTP or API requests

  • Unexpected traffic to specific endpoints

  • Higher application latency

  • Increased 4xx or 5xx errors

  • Database or backend saturation

  • Unusual geographic traffic

  • Large numbers of new clients or IP addresses

  • Abnormal request patterns

  • Falling cache-hit ratios

  • Sudden increases in origin traffic

  • Increased infrastructure utilization without a corresponding rise in legitimate business activity

The key is context. A sudden traffic increase could represent an attack, but it could also be a successful product launch or breaking-news event. Security controls need to distinguish good traffic spikes from malicious ones as accurately as possible.

What does Fastly offer for application-layer DDoS protection?

Fastly provides multiple complementary technologies for protecting applications against DDoS and other Layer 7 threats.

Fastly DDoS Protection

Fastly DDoS Protection is designed to detect and mitigate attacks at the edge before malicious traffic can overwhelm application infrastructure. Fastly's DDoS capabilities operate across its global edge network, allowing attack traffic to be handled away from protected origins.

For application-layer threats, this approach is particularly valuable because mitigation can occur before malicious requests consume application servers, databases, and other backend resources.

Fastly Next-Gen WAF

Fastly Next-Gen WAF provides application and API protection against malicious requests. It complements DDoS protection by identifying application attacks like SQL injection, cross-site scripting, command injection, and other malicious traffic.

Fastly's Next-Gen WAF uses SmartParse technology to analyze requests and identify malicious intent while aiming to reduce the false positives commonly associated with traditional rule-heavy WAF deployments.

Fastly Bot Management

Fastly Bot Management can help identify and control automated traffic targeting websites and applications. This matters for Layer 7 DDoS because attackers frequently use botnets to distribute malicious requests across many clients.

Bot-management capabilities can help organizations distinguish automated traffic from legitimate users and apply controls based on the nature of that traffic.

Rate limiting

Fastly provides rate-limiting capabilities that organizations can use to protect sensitive endpoints and control excessive request rates. Instead of treating every application function identically, teams can design policies around the resources they need to protect.

CDN caching and Origin Shield

Fastly's CDN can also contribute to application resilience. Caching eligible responses at the edge reduces the number of requests that must reach an application's origin. Origin Shield provides an additional caching layer that can further reduce duplicate requests reaching backend infrastructure.

These capabilities aren't replacements for DDoS mitigation, but they can reduce origin exposure and improve an application's ability to withstand traffic spikes.

Real-time visibility

Fastly provides real-time logging and observability capabilities that can help security and operations teams understand traffic and application behavior during an incident.

Fast visibility is particularly valuable during Layer 7 attacks because teams may need to determine which endpoints are being targeted and how malicious requests differ from legitimate traffic.

How can Fastly help protect applications from Layer 7 DDoS attacks?

Application-layer DDoS protection works best when multiple controls reinforce one another. Fastly brings together DDoS Protection, Next-Gen WAF, Bot Management, rate limiting, CDN caching, Origin Shield, and real-time visibility on its edge cloud platform.

This layered approach can help organizations:

  • Detect and mitigate malicious traffic at the edge

  • Reduce attack traffic reaching origin infrastructure

  • Protect websites and APIs from application-layer threats

  • Identify and control malicious automated clients

  • Apply rate limits to sensitive or expensive endpoints

  • Absorb legitimate traffic spikes more effectively

  • Reduce origin requests through caching

  • Maintain visibility during security incidents

Most importantly, organizations shouldn't treat application-layer DDoS protection as simply a question of absorbing the largest possible traffic volume. Layer 7 attacks target application behavior and resources. Effective protection therefore needs to understand application traffic well enough to identify malicious activity while continuing to serve legitimate users.

Combining edge-based DDoS mitigation with application-aware security, bot management, caching, and real-time visibility can provide a stronger defense against attacks designed to make modern web applications and APIs unavailable.


始める準備はできましたか?

ぜひご連絡ください