antibot.dev
Sponsored Try LayerSift

Glossary

Web application firewall (WAF)

Also called: WAF, web application firewall, web app firewall, cloud WAF

Updated November 14, 2026

A web application firewall (WAF) filters HTTP traffic between clients and a web application and blocks requests that look like attacks. OWASP describes it as “an application firewall for HTTP applications” whose rules typically target threats such as cross-site scripting (XSS) and SQL injection.

How it works

A WAF sits in front of the application: in a CDN, a cloud load balancer, a reverse proxy or a web server module. It inspects each request’s URL, headers, cookies and body, and sometimes the response, against rules:

  • Signature rules match known attack patterns. The open-source OWASP Core Rule Set is a generic set of these for ModSecurity and compatible WAFs.
  • Custom rules block or allow by path, method, country, IP list or header.
  • Rate limits cap how often a client can hit an endpoint.

Matching requests are blocked, logged or challenged.

WAF versus bot management

A WAF asks whether a request is malicious. Bot management asks who or what is sending it. Credential stuffing, scraping and scalping use perfectly valid requests, so payload rules don’t see them, and IP rules fail against residential proxies. Catching them takes fingerprinting, behavior and challenges.

Some vendors sell bot management as an add-on to a WAF, others as a separate product. Both layers can help against layer 7 DDoS floods.

Use the bot protection checker to see which WAF or bot protection a site uses, and the feature matrix to compare what vendors document.

Questions

Does a WAF stop bots?

Only some. A WAF is good at blocking malicious payloads and known bad sources. Bots that send valid logins, searches or checkouts through residential proxies look like normal traffic to WAF rules, which is why bot management is usually a separate product or add-on.

What is the difference between a WAF and a network firewall?

A network firewall filters connections by address, port and protocol. A WAF works at the HTTP layer and inspects requests, such as URLs, headers, cookies and bodies, to block attacks on the web application itself.