Be great to have a new plugin or setting that will not track any traffic coming from any cloud provider such as AWS, GC or Azure. For most websites this should be fine as the traffic in this case be unlikely from a human.
There is eg here all the current IP ranges of AWS: https://ip-ranges.amazonaws.com/ip-ranges.json
azure: maybe https://www.microsoft.com/en-us/download/details.aspx?id=56519
Google Cloud: https://cloud.google.com/compute/docs/faq#find_ip_range
There is also https://github.com/bcoe/which-cloud but seems outdated maybe. There might be ways to get this data though eg see https://posts.specterops.io/head-in-the-clouds-bd038bb69e48 (although a whois be slow)
Not sure if I'm missing something but this could be useful for when you get spammed from bots? Checking so many IP ranges might be slow though.
this is done in https://github.com/matomo-org/plugin-TrackingSpamPrevention