The easiest way available today to prevent DDoS attacks on your website is to use a WAF (web application firewall) which screens the traffic to your website. For small to medium websites it's easiest to use a cloud-based web application firewall services as Incapsula.com
Because they are capable of conducting a very hard to prevent DDoS attack.
Smurfing
Many hosts participate in a coordinated attack.
What you are describing is not a type of malware, but a DoS (Denial of Service) attack.
distributed denial-of-service attack or known as DDoS
A firewall can help prevent DDoS attacks by monitoring incoming traffic and filtering out malicious requests that exceed predefined thresholds. By implementing rules that block or limit excessive traffic from specific IP addresses or geographic regions, firewalls can reduce the impact of an attack. Additionally, advanced firewalls can use anomaly detection to identify and mitigate unusual traffic patterns indicative of a DDoS attack. However, while firewalls are a crucial line of defense, they may not completely eliminate the risk, necessitating a layered security approach.
A DDoS attack
You can prevent a DDoS attack by using multiple layers of defense: Use firewalls and intrusion prevention systems to filter malicious traffic. Set up rate limiting so attackers can’t flood your server with requests. Rely on Content Delivery Networks (CDNs) or DDoS protection services that absorb large traffic spikes. Keep systems updated to reduce exploitable weaknesses. In short, combining strong network security tools with cloud-based protection helps stop attacks before they disrupt your services.
A DDOS attack is a dedicated denial of service by making a computer's resources unusable to its users. In order to prevent it, you need a good firewall. You can also block those attacking IP addresses.
DDoS stands for Distributed Denial Of Service. In a dDOS attack, a large number of computers simultaneously overload a target machine or network. The intent is to prevent the website, network, or computer from servicing legitimate customers. A dDOS attack is definitely illegal. It would be similar to a neighborhood of thugs all showing up at your house to raid it at the same time. But for websites, rather than it just being scary and inconvenient, an attack disrupts the site's business and commerce. Attacking a government website would bring higher punishments. Security software can identify incoming attacks, but the software is expensive.
A Denial of Service attack (Abbreviated as DoS).
DDoS stands for Distributed Denial of Service. It’s a type of cyberattack where multiple compromised devices are used together to flood a target system, network, or website with traffic, making it slow or unavailable to real users.