Which device is used to safeguard a network against unauthorized access by hackers?
Explanation
A firewall acts as a barrier that prevents unauthorized users from accessing a network, thereby protecting the system from hackers. A scanner checks for viruses, a hub connects devices in a network without filtering traffic, and Snort is an intrusion detection system that monitors network traffic but does not block access like a firewall.