Proxy is the right answer.
Proxies are build as application layer firewalls as they are aware of the protocol.
e.g. Companies generally set up web proxies so that all the internal employees can access Internet through a common point. Allows them to control and monitor the browsing of the employees.
This proxy server knows about http protocol
Vinay