A way to detect VPNs

The best way i see on other forums is to block any ip is not flagged as “residential ip”, and i think they’re doing it through cloudflare dashboard. I own an RDP from Hetzner and seeing forums blocking the server ip from visiting their posts and getting cloudflare block page. When i checked the IP on ipinfo.io i saw that it’s already flagged as hosting ip