Re:Ask HN: IPv4 mass scans – do many Cloudflare customers pa...
by ThePhysicist on Sunday September 04, 2022 @05:31PM
(#32717899)
Back when I used Cloudflare I always restricted the ingress IPs to Cloudflares' IP space, they provide a list for exactly that purpose [1]. Just take that list and block every HTTP connection not coming from those ranges.
1: https://www.cloudflare.com/ips/