---
title: "What is a web application firewall?"
term: "web application firewall"
description: "A web application firewall (WAF) is a security layer that inspects HTTP traffic to and from a website or web application and blocks malicious requests, such as SQL injection and cross-site scripting attacks."
url: "https://glossary.io/web-application-firewall/"
published: "2026-11-22T20:47:09.688Z"
updated: "2026-11-22T20:47:09.688Z"
aliases:
  - "WAF"
topics:
  - "Privacy and security"
wikidata: "https://www.wikidata.org/wiki/Q25348457"
---

# What is a web application firewall?

**Definition:** A web application firewall (WAF) is a security layer that inspects HTTP traffic to and from a website or web application and blocks malicious requests, such as SQL injection and cross-site scripting attacks.

**Also known as:** WAF

A traditional network firewall decides which connections to allow based on addresses and ports. A WAF works at the application level instead, reading the contents of web requests and comparing them with rules that describe known attack patterns, such as [cross-site scripting](https://glossary.io/cross-site-scripting/) payloads, as well as suspicious bots and abusive behavior. It can block or challenge bad requests, limit request rates and shield known vulnerabilities until the application itself is fixed.

A WAF can run on the server, as a plugin in a content management system or as a cloud service in front of a site, as with [Cloudflare](https://glossary.io/cloudflare/) and [Sucuri](https://glossary.io/sucuri/). Many rely on shared rule sets such as the OWASP Core Rule Set. Rules that are too strict can block real visitors, so they need tuning, and a firewall does not replace secure code and timely updates.

## web application firewall resources

- [web application firewall on Wikipedia](https://en.wikipedia.org/wiki/Web_application_firewall)

## Related terms

- [Sucuri](https://glossary.io/sucuri/)
- [botnet](https://glossary.io/botnet/)
- [Cloudflare](https://glossary.io/cloudflare/)
- [Content Security Policy](https://glossary.io/content-security-policy/)
- [cross-site scripting](https://glossary.io/cross-site-scripting/)
- [IPinfo](https://glossary.io/ipinfo/)

**Topic:** [Privacy and security](https://glossary.io/topics/privacy-security/)

## Cite this definition

- APA: What is a web application firewall? (2026, November 22). Glossary. https://glossary.io/web-application-firewall/
- MLA: “What Is a Web Application Firewall?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/web-application-firewall/.
- Chicago: “What Is a Web Application Firewall?” Glossary. Coywolf. November 22, 2026. https://glossary.io/web-application-firewall/.

Published November 22, 2026.
