It’s definitely not magic that helps keep more than 99% of visits from Search spam-free! This post explains what happens behind the scenes and how we fought Search spam in 2021.
Source: Google Webmaster Central Blog
Link: How we fought Search spam on Google in 2021