I
I
Igor2021-08-18 20:28:48
htaccess
Igor, 2021-08-18 20:28:48

How to block a grid of IP addresses by AS number in htaccess?

I know how to block a separate IP address, ranges like 111.222.333.0/24. But how to block IP address grids by AS-number (ASN)? For now, I use CloudFlare for these purposes (including), but I plan to abandon it. Therefore, I would like to use handles in htaccess myself, but I have not found similar examples anywhere yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zettabyte, 2021-08-19
@Zettabyte

how to block IP address grids by AS-number (ASN)?

You can use this tool here:
https://www.enjen.net/asn-blocklist/index.php?asn=...
Enter the ASN number on the left, "Htaccess Block List" on the right.
There is also a mod_asn module:
https://mirrorbrain.org/mod_asn/
https://github.com/poeml/mod_asn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question