hi fedi uhh i'm looking for a specific website that would give me block lists of an entire ASN's IP addresses
it specifically had an output format of ipset and would give you a text file to copy and execute to add each IP to a ipset and block that ipset using iptables
does anyone know which one i'm talking about
(kemona_halftau)
@niko how and why does claude have an entire asn
@kemona_halftau claude does not have an ASN they have a ISP but rent space from some other service iirc i do not remember which
@niko given that IP to ASN mapping change regularly, do not do this unless you have an automated update process
@niko Ripe has an API endpoint for listing the prefixes: https://stat.ripe.net/docs/data-api/api-endpoints/as-routing-consistency
With that you could hack together something that puts it in the format you need it to be.
@niko There are tons of them, e.g. https://asnlookup.com/
I'm not sure I understand the question well.
@niko Anyway, you're probably interested in the RDAP protocol: https://docs.db.ripe.net/How-to-Query-the-RIPE-Database/Registration-Data-Access-Protocol