In short: a cloud WAF is a web application firewall delivered as a service. Traffic to your site passes through the provider’s network, which filters out attacks before they reach your server. It needs no hardware or code changes, and the provider keeps the rules up to date.
What is a WAF
WAF stands for Web Application Firewall. It sits between the internet and your application — a company website, online store, customer portal or API — and inspects every HTTP and HTTPS request. Requests that look like attacks are blocked and the rest are passed on.
A cloud WAF does the same job as a service on the provider’s network. You don’t install an appliance in your server room or a plugin on your server. You route your domain’s traffic through the provider’s infrastructure, and from then on it receives and filters the requests.
Is a WAF a firewall?
Yes, but it works at a different level from the firewall most IT teams know. The differences are easiest to see side by side:
| Network firewall | WAF | |
|---|---|---|
| Layer | Network and transport (3–4) | Application (7) |
| What it inspects | IP addresses, ports, protocols | Request content: URLs, parameters, headers, cookies, form data |
| What it stops | Traffic from disallowed addresses, port scans | SQL injection, XSS, API abuse, HTTP floods, malicious bots |
| What it can’t see | An attack hidden in a valid request on port 443 | Attacks on services other than HTTP/HTTPS |
An SQL injection attack arrives on the same port 443 as an ordinary page visit, so a network firewall will let it through. That’s why most organisations need both.
How a cloud WAF works
Once deployed, your domain points to the provider’s network, usually through a DNS change. The provider acts as a reverse proxy: it accepts the user’s connection, checks the request and forwards only clean requests to your server (the origin).
Each request goes through several stages:
- Inspection — the WAF reads the URL, parameters, headers and body of the request.
- Rules and signatures — it compares them with known attack patterns, such as the OWASP Top 10 and descriptions of new vulnerabilities (CVEs).
- Risk scoring — modern WAFs don’t work on a simple yes/no basis. They score suspicious characteristics and block only above a threshold, which reduces false positives.
- Reputation and behaviour — they factor in IP reputation, request rate and patterns typical of bots.
- Decision — allow, challenge (for example, browser verification), rate-limit or block.
Because filtering happens on the provider’s distributed network, attacks don’t load your connection or server. This matters especially for application-layer DDoS attacks.
Important: after deploying a cloud WAF, block direct access to your origin server and accept traffic only from the provider. Otherwise an attacker who knows the server’s IP address can bypass the WAF.
Cloud or on-premises WAF?
| Cloud WAF | On-premises WAF | |
|---|---|---|
| Deployment | Days, a DNS change | Weeks, buying and installing appliances |
| Costs | Subscription, no hardware investment | Hardware, licences, maintenance, replacement every few years |
| Rule updates | Handled by the provider, automatically | Your responsibility |
| DDoS attacks | Absorbed by the provider’s network | Limited by your own bandwidth |
| Control and data | Traffic passes through the provider | Full control, traffic stays in your network |
| Best for | Most websites, stores and APIs | Internal systems, special regulatory requirements |
Increasingly, organisations use a hybrid model: public applications are protected by a cloud WAF and internal applications by the same engine running locally, with one shared security policy. Akamai App & API Protector Hybrid, for example, supports this.
What it protects against, and what it doesn’t
It protects against
- OWASP Top 10 attacks: SQL injection, XSS, path traversal, remote code execution,
- exploitation of newly disclosed vulnerabilities before you install a patch (virtual patching),
- application-layer DDoS attacks such as HTTP floods,
- API abuse and malicious bots, depending on the provider and modules.
It doesn’t protect against
- the long-term effects of outdated software — you still need to patch,
- account takeover with stolen passwords, without account protection and MFA,
- flaws in application logic that can’t be recognised from how a request looks,
- data loss without backups.
Cloud WAF providers
The most common providers are Akamai (App & API Protector), Cloudflare, AWS WAF, Azure Web Application Firewall, Imperva, F5 and Fastly. Public cloud WAFs (AWS, Azure) work best for applications running in those clouds. Providers with their own global network, such as Akamai and Cloudflare, protect an application wherever it is hosted.
A common question is whether Cloudflare is a WAF. Cloudflare is a company, and a WAF is one of its services, alongside CDN, DNS and DDoS protection. The same goes for Akamai: App & API Protector combines a WAF, layer 7 DDoS protection, API protection and bot visibility in one product.
How to choose a cloud WAF
Before choosing, ask the provider or partner a few questions:
- False positives — how does it avoid blocking real customers? Does it tune itself?
- Monitoring mode — can you start by observing before switching on blocking?
- APIs — does it discover and protect APIs, including undocumented ones?
- DDoS — is DDoS protection included, and to what extent?
- Bots — can it tell useful bots from harmful ones?
- Hybrid — will it cover applications on-premises and in other clouds?
- Automation — API, Terraform, SIEM integration.
- Support — who helps during deployment and during an attack, in what language and how fast?
WAF and PCI DSS, NIS2 and DORA
PCI DSS 4.0 (requirement 6.4.2) expects public-facing web applications to be protected by an automated technical solution that continually detects and prevents web-based attacks. For online stores and companies processing card payments, a WAF is effectively standard.
NIS2 requires essential and important entities to apply appropriate technical measures to protect their services, and DORA requires the financial sector to demonstrate digital operational resilience. A WAF alone doesn’t make you compliant, but it’s one of the controls auditors ask about, and it provides the logs and reports they need.
Frequently asked questions
What does WAF stand for?
WAF stands for Web Application Firewall. It protects websites, online stores and APIs from attacks hidden in HTTP and HTTPS traffic.
What is a WAF firewall?
It sits between users and your application, inspects every request and blocks those that look like an attack, such as an SQL injection attempt, XSS or a flood of requests.
Is a WAF a firewall?
Yes, it’s a type of firewall, but it works at the application layer (layer 7). A network firewall decides based on IP addresses and ports, while a WAF looks at the content of requests. Most organisations need both.
Is Cloudflare a WAF?
Cloudflare is a company that offers a WAF as one of the services on its network, alongside CDN, DNS and DDoS protection. Cloud WAFs are also offered by Akamai, AWS, Microsoft Azure, Imperva and Fastly, among others.
Does a cloud WAF slow down my website?
Usually not. Providers combine the WAF with a CDN, so content is served from servers close to the user, which often makes the site faster. Inspecting a request takes milliseconds.
Is a WAF enough to protect my website?
No. A WAF is an important layer of defence, but it doesn’t replace software updates, strong passwords, multi-factor authentication, backups or monitoring.
Want to protect your application with a cloud WAF?
We deploy Akamai App & API Protector for companies in Poland and across Europe. Free consultation and quote.