Firewall – WAF vs Firewall

firewall

I was reading up about firewalls and came across two concepts which confused me- Web Application Firewall and "regular" firewall. I'm not fully sure what the differences are- they both sound like they accomplish the same thing. Does anyone know the difference?

Thanks!

Best Answer

A "regular" firewall typically only looks at layers 3 and 4 of the OSI model. For instance, to allow TCP port 80, allow UDP port 53 from only specific IP addresses, or deny TCP port 25.

For HTTP requests, once the "allow TCP port 80" hurdle is cleared, the firewall is uninterested in what's passed via that connection.


A Web Application Firewall works almost exclusively at layer 7, dealing with security in terms of the content of HTTP requests.

Mainly, they're looking to prevent requests that are outside what should be expected for your web application, using rules applied to incoming HTTP requests to prevent attacks like cross-site scripting, SQL injection, directory traversal, or brute-force authentication attempts. Essentially, their whole purpose is shielding the web server from the kinds of manipulated and malicious requests that attackers might use to compromise your web application.

Related Topic