A proxy acts between a user and a server, forwarding requests and responses. A Web Application Firewall (WAF) filters and protects web applications from various online attacks.