A Web Application Firewall (WAF) is designed to protect web applications from attacks by filtering and blocking malicious traffic. It can prevent SQL injection, cross-site scripting, and other web-based attacks.