A firewall is primarilly used to -----:

A ) Increase internet speed

B ) Protect a computer network from unauthorized access ✅

C ) Store data

D ) Scan documents