Step 1: Understand the term.
A firewall is a hardware device or software application designed to protect a computer or network from unauthorized access.
Step 2: Know its function.
A firewall continuously monitors incoming and outgoing network traffic and allows or blocks data packets according to predefined security rules.
Its primary objective is to prevent hackers, malware, and other cyber threats from entering a network.
Step 3: Analyse the options.
• (A) Incorrect. Internet speed is not the function of a firewall.
• (B) Correct. This is the correct definition of a firewall.
• (C) Incorrect. Data backup is performed using backup software.
• (D) Incorrect. Organizing files is handled by the operating system or file management software.
Step 4: Final conclusion.
\[
\boxed{\text{A Firewall protects a computer or network by monitoring and controlling network traffic.}}
\]
Hence, the correct option is \(\boxed{(B)}\).