Anycast does not only make networks and the transfer of data streams more efficient and more resistant to malfunctions and failures. Security also benefits from this routing scheme. Distributed computing (or distributed infrastructures) is usually less susceptible to hacker attacks and can often react better to them. Anycast routing is a particularly effective means against denial of service attacks (also called DDoS attacks), which hackers can use to bring digital infrastructures to their knees.
Due to the enormous amount of traffic that is generated by hijacked computers and IoT devices around the world and directed specifically to the victim of an attack, overloaded websites and servers can no longer be reached, at least temporarily. The operators of websites or servers who, for example, are transacting a large online sales campaign or want to stream a significant live event are then often blackmailed and have to buy their way out in order to avert financial damage.
Anycast can distribute DDoS attacks over a large area according to the diffusion principle and thereby at least weaken them (this is comparable to the force of a raging river, which is diffused by cleverly distributing the water over floodplain areas and into distributaries). At the same time, the distribution can limit the breadth of the attack and continue to give many users access to the affected infrastructure via alternative routes. However, the anycast network must be sufficiently large and efficient to combat such attacks effectively and reliably, some of which are extremely complex.