Blocking VPNs and Proxies (RE)

Hello. I would like to block all proxy / vpn due to bad actors trying to destroy the site with porn attacks… I know it’s impossible to block 100% but my goal is to block at least 95% to make it a chore for bad actors to find one ip that works.

so far my method has been to scan bad actor IP individually, and when proxy confirmed, I block the ASN (usually +10K ip blocked per ASN)
but still far from 95% and very time consuming method
why is there no CF option to do this? bad actors can be a crippling problem for growing sites

apparently @ awwwmuffinz found a method but did not post their code

Nobody can help?