geoip-shell icon indicating copy to clipboard operation
geoip-shell copied to clipboard

ASN-Based Blocking

Open nOw-Ay opened this issue 4 months ago • 2 comments

Hello,

I’ve been receiving a significant number of malicious requests originating from certain U.S.-based ASNs.

However, I don’t want to block all U.S. inbound traffic, as some of my services depend on legitimate connections from the U.S.

I know that MaxMind provides access to their ASN database under their free plan, similar to their geolocation database. Would it be possible to implement automated ASN-based blocking using that data? I think tha would be a nice extension to have even if it maybe goes out of the scope of geoip-shell.

Thanks a lot for your help!

nOw-Ay avatar Oct 07 '25 13:10 nOw-Ay

Hi, thanks for the feature request. I'll look into this.

friendly-bits avatar Oct 07 '25 20:10 friendly-bits

Would be great if you could add this to geoip-shell.

I've found this. Maybe it helps a bit? https://github.com/MarcoMarcoaldi/ASN_IPTables_Blocker.sh

thenightfighter avatar Nov 21 '25 18:11 thenightfighter