Skip to main content
Back to Learning Center

What is a WAF?

A Web Application Firewall is a security component that lives in front of a web application, and inspects inbound traffic to web applications to prevent malicious requests from exploiting vulnerabilities.

Oct 20, 2025
What is a WAF?

A Web Application Firewall is a security component that lives in front of a web application, and inspects inbound traffic to web applications to prevent malicious requests from exploiting vulnerabilities.

In the network stack, a WAF sits at the OSI model’s Application layer, giving it full visibility in the request payload. To do this inspection, the WAF terminates TLS and SSL, letting it inspect what’s coming in. It then analyzes each request for patterns defined in a rules list. These rules can help prevent common attack methods such as SQL Injection Attacks, injection of cross-site scripting (XSS) payloads, Cross-site request forgery (CSRF), file inclusion attacks and more.

Maintaining strong firewall rules is the most valuable part of a WAF. Rule quality varies significantly between vendors, and is ultimately the main intellectual property difference between vendors. A WAF usually approaches detections using a negative blocking model, which treats every request as legitimate unless a specific rule triggers. Some vendors will use machine learning to detect abstractions of known patterns and trigger rules based on that.

Despite their benefits, web application firewalls can also create trade-offs by adding significant latency to web applications, or in some cases create a false sense of security by limiting the packet size it inspects. In turn, this can let bad actors bypass detection and slip in unnoticed.

Traditionally, a WAF cannot monitor web server responses, or egress. This is a limitation that if not planned for, can cause sensitive data leakage in case of a malicious request. A WAF also does not have any visibility into client-side executions.

Web application firewalls can be deployed in many ways: as physical appliances, managed services that are hosted in public cloud platforms, services that are run on edge runtimes, or more recently, embedded directly into an application through an SDK.

Security is all about layering. A WAF does not magically solve security risks, however, it can be a good layer in the security defence of a web application. 

In fact, many industry standard compliance frameworks like PCI DSS, recommend or require having a WAF implemented.

Simon Wijckmans
Founder & CEO

Founder and CEO of cside. Previously a product manager on Cloudflare Page Shield (now Cloudflare Client-Side Security). Co-chair of the W3C Anti-Fraud Community Group and a Forbes 30 Under 30 honoree. Building accessible security against client-side attacks, web security is not an enterprise-only problem.

Monitor and Secure Your Third-Party Scripts

Gain full visibility and control over every script delivered to your users to improve site security and performance.

Start free, or try Business with a 14-day trial.

cside dashboard interface showing script monitoring and security analytics
Book a demo

Want to walk through this with an engineer?

Thirty minutes, on your own site. Not a slide deck.

We'll show you:

Which third-party scripts are running on your site right now
Where you stand on PCI DSS 6.4.3 and 11.6.1
How much of your traffic is bots and AI agents

Rather just send a question?

Finding open slots…

Real humans only. We'd know.

Having trouble booking? Open scheduler in a new tab

What are you trying to solve?

Tell us in a line and we'll come back with something useful, not a generic pitch.

We usually help with:

Seeing which third-party scripts run on your site
PCI DSS 6.4.3 and 11.6.1 evidence
Bots, AI agents and account takeover

Prefer to just book a time? Pick a slot instead