Firewall — network-level filtering. WAF — application-level protection.
Firewall:
Firewall:
Rule: Block port 23 (Telnet)
Rule: Allow port 443 (HTTPS)
(Network level filtering)
WAF (Web Application Firewall):
WAF:
Block: SQL injection attempts
Block: XSS attacks
Allow: legitimate requests
(Application level protection)
Key differences: