A firewall is a program or hardware device that filters incoming and outgoing network traffic based on predetermined security rules. It protects a network or computer system from unauthorized access or threats coming through an internet connection.
So,
Firewall is used to filter information coming through an internet connection to a network or computer system.