24 ms·
You can lookup the AS of an IP and blacklist thr cloud providers you care about by AS Number. Maxmind has a free database as part of GeoLite2 [1], but you can
by toast0 5y ago
You can lookup the AS of an IP and blacklist thr cloud providers you care about by AS Number.
Maxmind has a free database as part of GeoLite2 [1], but you can also put together a database from IP assignments or BGP data or ?
Most larger clouds publish their IPs as well.
Pitfalls are that you do need to update your database frequently, and it is difficult to validate changes. You're likely to get some real people who are using a VPN or something in cloud ranges, and some abuse/automation that is using residential ISPs, so it's not perfect, but it may help somewhat.
[1] https://dev.maxmind.com/geoip/geolite2-free-geolocation-data https://dev.maxmind.com/geoip/geolite2-free-geolocation-data