Answer
See the explanation
Work Step by Step
Firewalls can be placed at different layers of the TCP/IP protocol hierarchy to filter incoming traffic.
For message content filtering, a firewall can be placed at the application layer.
For source address filtering, it can be placed at the network layer.
And for filtering based on the type of application, it can also be placed at the application layer.