Windows Defender Firewall prevents unauthorized access by malware or Trojans to the PC when connected to the internet.