An attempt to make a computer resource unavailable to its intended users is called a Denial-of-Service (DoS) attack (or a Distributed Denial-of-Service (DDoS) attack if it originates from multiple sources).
Explanation:
DoS Attack: A single attacker overwhelms a system, server, or network with a flood of traffic or requests, exhausting its resources (like bandwidth, memory, or CPU) so that legitimate users cannot access it.
DDoS Attack: A scaled-up version where traffic floods the target from multiple compromised systems (often a botnet) distributed across different locations, making it much harder to block or mitigate.